Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best method to send multiple e-mails

Status
Not open for further replies.

48Highlander

Technical User
Feb 8, 2004
119
CA
I am developing an app for sale and I want to be able to allow my customers to use Outlook Express or similar e-mail clients (does this mean MAPI compliant?) for mass e-mails. I want them to be able to have an attachment and preferably the message body could be in HTML.

I have read in FAQ 705-537 about using “shell32.dll” and in faq181-5705 about using a CDO reference. I have also read in about using Winsock and MAPI. I don’t understand the pros and cons of each of these methods for sending e-mail. Can someone provide a quick summary or recommendation?


Bill J
 
CDO Mail (via SMTP) will work whatever email client they have, you just need to get the client to enter a server DNS name or IP address in a configuration setup.
Sending email via CDO won't store copies of it though, unless you keep it in the database.
SMTP is an international standard, so CDO will work regardless of your email system, provided that the PC the system is on can connect to the SMTP server.

Using MAPI will automate an email client (such as Outlook), so you can use address books accessible to the client.
As a result of having access to the client API, any messages sent through it will get stored in the Sent Mail folder.
To use a different client (eg if you wanted to use Eudora) you would need to rewrite the connectivity and message sending code.

Its your call as to which is better in your situation.

John
 
You can find an example of automating Outlook, which shows how to handle priority, attachments, voting buttons and lots of other stuff above and beyond the usual "To, Cc, Subject and Message" approaches, at
Whether this approach could be adapted to work with Outlook Express, well, I don't know.
 
Where could I find a good example of code for use with Eudora?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top