Batching SMTP mails

  • Thread starter Thread starter Ron Bullman
  • Start date Start date
My SQL Server/VB.NET application needs the ability to send
out a newsletter to a few hundred people at a time. Also,
my employer would rather not have all their addresses
appear in the "to" line, or even something like it via
BCC. So, I create a MailMessage object, populate
everything except the "To" field, then loop through the
addresses doing:

msg.To = nextperson.email
SmtpMail.Send(msg)

or something very much like that. Unfortunately, the
speed using this approach is abominable; it can send about
80 emails per minute.

Does anyone know a way to speed this up?



~BenDilts( void );
 
Ben said:
My SQL Server/VB.NET application needs the ability to send
out a newsletter to a few hundred people at a time. Also,
my employer would rather not have all their addresses
appear in the "to" line, or even something like it via
BCC. So, I create a MailMessage object, populate
everything except the "To" field, then loop through the
addresses doing:

msg.To = nextperson.email
SmtpMail.Send(msg)

or something very much like that. Unfortunately, the
speed using this approach is abominable; it can send about
80 emails per minute.

Does anyone know a way to speed this up?



~BenDilts( void );


The "MailMessage.To" should accept "A semicolon-delimited list of e-mail
addresses".

i.e.
msg.To = "address1;address2;....";

refer
"http://msdn.microsoft.com/library/d...frlrfsystemwebmailmailmessageclasstotopic.asp"

Could you try does it improve the speed?
 
Back
Top