Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Do someone knew how to use Extended MAPI,please give me a simple(I prefer c++/com). I found when using simple MAPI via Outlook Express to send a email, it come out a dialog, I don't want it. thanks !
Posted

1 solution

This is due to the "new" security concerns of apps sending mails without user concern.

In order to send e-mails I've tried to use that extended API, but at the end this requires you to have a mail client installed and the extended api will be focused on that client so the day you'll change the client (i.e. from Outlook express to Outlook) it can happen that the program stops sending e-mails.

I've used this class from PJ Naughter: http://www.naughter.com/smtp.html[^].

It works like charm, you don't need to have any client installed and it's easy to use. Only endure to read the code files header where all the dependencies are explained.

You'll get it working in less than nothing.

Good luck.
 
Share this answer
 
Comments
[no name] 30-Aug-12 23:07pm    
Thanks for you help! I find if change the security setting somehow the program will not popup the confirm dialog.
Joan M 31-Aug-12 1:38am    
Yes, of course, there is also a small patch that solves this.
The only problem is that you are overriding security.
If that application you are making is "for your eyes only" then why not, but as a customer I would not buy it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900