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. MAPI Help...

MAPI Help...

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
3 Posts 2 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.
  • L Offline
    L Offline
    LizardWiz
    wrote on last edited by
    #1

    When I use the MAPISendMail command with the MAPI_DIALOG flag it brings up the dialog in Outlook (loading mapi32.dll library) and Outlook Express (loading msoe.dll library). If the mail client is closed, the message will send in Outlook Express, but will sit in the outbox of Outlook until the program is opened and the send/receive button is pressed. How can I change this behavior? I can't create a new process of outlook.exe because I do not know if the mail has been sent before killing the process... Help please. Thank you in advance... ~LizardWiz()

    PJ ArendsP 1 Reply Last reply
    0
    • L LizardWiz

      When I use the MAPISendMail command with the MAPI_DIALOG flag it brings up the dialog in Outlook (loading mapi32.dll library) and Outlook Express (loading msoe.dll library). If the mail client is closed, the message will send in Outlook Express, but will sit in the outbox of Outlook until the program is opened and the send/receive button is pressed. How can I change this behavior? I can't create a new process of outlook.exe because I do not know if the mail has been sent before killing the process... Help please. Thank you in advance... ~LizardWiz()

      PJ ArendsP Offline
      PJ ArendsP Offline
      PJ Arends
      wrote on last edited by
      #2

      One solution is to drop MAPI and use SMTP instead. PJ Naughter has written a very handy, easy to use, MFC class that wraps the SMTP protocol. You can get it at http://www.naughter.com/smtp.html[^]. The only potential drawback on using this class is that the mail sent is not stored in your OE Sent Items folder so you will have to devise your own method of logging out going emails if you want to keep track of them.


      [

      ](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!

      Within you lies the power for good; Use it!

      L 1 Reply Last reply
      0
      • PJ ArendsP PJ Arends

        One solution is to drop MAPI and use SMTP instead. PJ Naughter has written a very handy, easy to use, MFC class that wraps the SMTP protocol. You can get it at http://www.naughter.com/smtp.html[^]. The only potential drawback on using this class is that the mail sent is not stored in your OE Sent Items folder so you will have to devise your own method of logging out going emails if you want to keep track of them.


        [

        ](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!

        L Offline
        L Offline
        LizardWiz
        wrote on last edited by
        #3

        Thanks for the reply but unfortunately the people who I am doing this project for want the Outlook message email dialog to come up (the one with the button), hence the need for the MAPI.DLL...unless someone has a better idea. Too bad your a Canucks fun but I am willing to overlook that fact because you are a hockey fan...Go Kings! ~LizardWiz()

        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