I want to open the default email service program (for example outlook) to send an email will the address, subject(facultative) and text already filled.
It will be very good if you have a sample to give.
Thanks.
Printable View
I want to open the default email service program (for example outlook) to send an email will the address, subject(facultative) and text already filled.
It will be very good if you have a sample to give.
Thanks.
Hi,
I really think MAPI is the solution you are looking for. Use MAPISendMail to send your message using the default browser. Try reading up on that topic.
Chao
I have already posted a problem similar to this but I didnt get any reply. I would like to see the solution posted to you.
Zulfi.
ok i looked at the function MapiSendMail and it seems to be what i need.
But the linker do not find the function MapiSendMail.
What file (library i suppose) has to be added to the project ?
And then what files must be installed with my release application (DLL for example) ?
Thanks.
There are plenty of classes here in CodeGuru for sending email, under the Internet section: http://www.codeguru.com/internet/index.shtml.
For MAPI, I recommend Rob Manderson's classes: http://www.codeguru.com/internet/imapi.shtml.
For SMTP, I recommend Jean-Francois Ouellet classes: http://www.codeguru.com/internet/update_smtp1.shtml.
What's the difference? Well, MAPI is nice if your computer has a default MAPI client already on it (such as Microsoft Outlook). If you're sure that your program will always run on a box with a MAPI client, then use it. SMTP, on the other hand, is a low-level mechanism which uses a TCP connection to send messages to a mail server. So all it really needs from you is the name of the mail (SMTP) server, which you should be able to get from your system administrator.
Regards,
Alvaro
Thanks,
The MAPI class is just what i need.