Sending email
-
I want to add feature in my applications to send email silently via outlook express. Any example code you know then please tell me. Bye Bye
-
I want to add feature in my applications to send email silently via outlook express. Any example code you know then please tell me. Bye Bye
look here : http://www.codeproject.com/internet/#MAPI[^] -c
"Kate said / The flowers of intolerance and hatred / Are blooimg kind of early this year / Someone's been watering them. -- Robyn Hitchcock, Devil's Radio
-
I want to add feature in my applications to send email silently via outlook express. Any example code you know then please tell me. Bye Bye
Hi there ! An alternative to the excellent articles on MAPI in the corresponding section of this site could be the MSMAPI32.ocx control that installs with VS5.0+, which is documented in MAPI98.CHM. I use it to send emails from JScripts without using Outlook:
// Open MAPI connection var mapi = new ActiveXObject("MAPI.Session"); mapi.Logon(profileString); // Create message var message = mapi.Outbox.Messages.Add(); message.Subject = "The message subject"; message.Text = "The message body"; // Set recipients var recip = message.Recipients.Add(); recip.Name = "me@here.now"; recip.Type = 1; recip.Resolve(); // Send it ! message.Send();
You could convert this sample to VC++ using the #import directive and some COM knowledge, or search the microsoft site for MAPI.Session examples. Good luck! Alwin