Sending Lots of Emails

  • Thread starter Thread starter - Steve -
  • Start date Start date
S

- Steve -

After I send a large number of e-mails (More than 100 or so) using
System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail I get an error
message that says:

The timeout period elapsed prior to obtaining a connection from the pool.

How can I query how many messages are in the connection pool? I'd like to
add some logic to pause when the pool is getting full.
 
Interesting assumption. If someone sends more than 100 e-mails they must be
a spammer. Of course I could also be writing an application that e-mails
all the users on my very own server with specific information about them.
But that's probably spamming also.
 
Back
Top