Posted on: 5/25/2011 1:19:40 PM | Views : 908

Hi all,
I am having a performance issue with several web pages where a button is clicked and an e-mail message is sent. If I have a single "To" address the page returns the confirmation that the transaction was completed within 5-10 seconds, however, if I add several more "To" address it takes up to 60 seconds before the user receives the confirmation message.
Here is my code:
Protected Sub SendEmail() 'Email Confirmation Try 'Send To Address. Dim stringToAddress As String = "someone@domain.com" 'Create the MailMessage instance. Dim SendMailMessage As New MailMessage("Someone <someone@domain.com>", ToAddress) 'Assign the MailMessage's properties. SendMailMessage.Subject = "Email Message" SendMailMessage.To.Add("someone@domain.com") SendMailMessage.To.Add("someone2@domain.com") SendMailMes ...

Go to the complete details ...