Email Generation

  • Thread starter Thread starter Drew
  • Start date Start date
D

Drew

Could someone point me in the right direction of how to
send an email via a c++ program? I have had no luck in
finding out how to do this.
 
Could someone point me in the right direction of how to
send an email via a c++ program?

It depends what you need to do.

A couple of possibilities are:

1. ShellExecute a "mailto" command.

2. Use Simple MAPI - see "Sending Messages with Simple MAPI" in MSDN.

You can test the capabilities of the mailto syntax using the Start,
Run dialog. It can't automatically send the email, or add attachments.

Dave
 
Drew,

A reasonably easy and flexible option would be to CDO for Windows 2000. If
you do a search on CDO::IMessage, CDO::CLSID_Message, or CDO::IID_IMessage,
you will find a few samples, e.g.
http://support.microsoft.com/default.aspx?kbid=286037 ("HOWTO: Use CDOEX to
Create, Configure, and Send a Message in VC++"; I think it CDOEX is
different from CDO for W2K, but the logic must be the same or very similar).

Alek
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top