Click here to Skip to main content
16,017,502 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I would like to know what are the possible scenario where we get a Operation Timed Out Exception while using SmtpClient.Send method.

Thanks in advance....
Posted

1 solution

As there is the property System.Net.Mail.SmtpClient.Timeout, it's natural that you can also expect timeout itself. See http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.timeout.aspx[^].

After all, what the library should do if a SMTP server is broken after connection is already established, or Internet connection is lost or something like that?

—SA
 
Share this answer
 
Comments
Thiagarajan Duraisamy 18-Nov-11 2:26am    
hmmm, this exception can also be created on scenario where the file size is large and the smpt server is not able to send the mail, is there any other scenorio other than this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900