"Brute force attempt" on sending multiple emails

Posted by bretddog on Server Fault See other posts from Server Fault or by bretddog
Published on 2011-11-13T10:58:40Z Indexed on 2011/11/13 17:55 UTC
Read the original article Hit count: 286

Filed under:
|

While testing to send multiple emails, I successfully sent about 100 emails (with a 20KB pdf attachment), to the same email-address (my own), and they were all received. But on next attempt, my cPanel account was blocked, due to a "brute force attempt".

Are there any special precautions I need to take when sending bulk emails? I simply looped through below code without pause for each email. What type of alert could that give on the email server, and how should I avoid it?

  client = New SmtpClient(smtp, Convert.ToInt32(port))
  AddHandler client.SendCompleted, AddressOf OnAsyncSendComplete
  client.Credentials = New System.Net.NetworkCredential(usn, psw)
  client.SendAsync(mail, token) 

Should I wait for SendComplete event for each email before sending the next?

© Server Fault or respective owner

Related posts about .NET

Related posts about email