I am using following peace of code to send mail using godaddy hosting .
but its throw System.Net.Mail.SmtpException: The operation has timed out.
System.Net.Mail.SmtpException: The operation has timed out.
Just Change:
smtp.Timeout = 20000;
To
smtp.Timeout = 2000000;
I think this is the famous SSL issue of System.Net.Mail
System.Net.Mail with SSL to authenticate against port 465
You should use some external library or wait until Microsoft include this features in a framework release