Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Sending email

Sending email

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dsfasdfadsfasdfadsf
    wrote on last edited by
    #1

    I want to add feature in my applications to send email silently via outlook express. Any example code you know then please tell me. Bye Bye

    C A 2 Replies Last reply
    0
    • D dsfasdfadsfasdfadsf

      I want to add feature in my applications to send email silently via outlook express. Any example code you know then please tell me. Bye Bye

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      look here : http://www.codeproject.com/internet/#MAPI[^] -c


      "Kate said / The flowers of intolerance and hatred / Are blooimg kind of early this year / Someone's been watering them. -- Robyn Hitchcock, Devil's Radio

      1 Reply Last reply
      0
      • D dsfasdfadsfasdfadsf

        I want to add feature in my applications to send email silently via outlook express. Any example code you know then please tell me. Bye Bye

        A Offline
        A Offline
        Alwin75
        wrote on last edited by
        #3

        Hi there ! An alternative to the excellent articles on MAPI in the corresponding section of this site could be the MSMAPI32.ocx control that installs with VS5.0+, which is documented in MAPI98.CHM. I use it to send emails from JScripts without using Outlook: // Open MAPI connection var mapi = new ActiveXObject("MAPI.Session"); mapi.Logon(profileString); // Create message var message = mapi.Outbox.Messages.Add(); message.Subject = "The message subject"; message.Text = "The message body"; // Set recipients var recip = message.Recipients.Add(); recip.Name = "me@here.now"; recip.Type = 1; recip.Resolve(); // Send it ! message.Send(); You could convert this sample to VC++ using the #import directive and some COM knowledge, or search the microsoft site for MAPI.Session examples. Good luck! Alwin

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups