Board index » cppbuilder » How to send email through OutlookExpress?

How to send email through OutlookExpress?


2003-10-10 03:59:42 AM
cppbuilder92
Does anybody know how to send email message through OutlookExpress?
Thanks in advance!
 
 

Re:How to send email through OutlookExpress?

"Mirko Rajkovaca" < XXXX@XXXXX.COM >wrote in message
Quote
Does anybody know how to send email message through OutlookExpress?
The easiest way is to use ShellExecute() to invoke the "mailto" protocol,
ie:
ShellExecute(NULL, "open", "mailto: XXXX@XXXXX.COM ", 0, 0,
SW_SHOWNORMAL);
However, the "mailto" protocol is very limited in what it can do, and you
can't automatically send the message with it, either (you'd have to
manipulate the message window itself directly for that).
I would suggest using the MapiSendMail() function instead. OE supports
SimpleMAPI, and MapiSendMail() works well with OE.
Gambit