Click to See Complete Forum and Search --> : URGENT : Send an email
eric33
June 4th, 1999, 02:33 AM
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.
Chao
June 4th, 1999, 03:43 AM
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
Zulfi Khan
June 4th, 1999, 05:48 AM
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.
eric33
June 4th, 1999, 07:23 AM
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.
ALM
June 4th, 1999, 08:20 AM
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
eric33
June 4th, 1999, 09:24 AM
Thanks,
The MAPI class is just what i need.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.