Author: imchaz | Posted on: 12/17/2008 4:14:22 PM | Views : 312

Every now and then when my code executes the  smtpClient.Send(m) portion, I get a Server Error message:  It states:
Service not available, closing transmission channel.  The server response was: Timeout Waiting for Input
 Most of the time I am succussful but like I said every now and then it doesnt execute properly.  If I click on the back button and try it again, its fine.  What can I do to fix this from happening?  I dont want a user to see an Server Error page.

Here is my code:  
Dim MailContent As String = "The following information has been submitted to your SOA." + "<br/><br/>"

Dim plainView As AlternateView = AlternateView.CreateAlternateViewFromString(MailContent, Go to the complete details ...