MAPI Help...
-
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()
-
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()
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!
-
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!
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()