Line 20: mySmtpClient.Send(myMessage);mySmtpClient.Send(myM essage);
I get this error when I load up email.aspx during the execution of the first email test in chapter 9. I am running this from a web server on the internet, not locally.
Web browser shows:
The operation has timed out.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Mail.SmtpException: The operation has timed out.
Source Error:
Line 18:
Line 19: SmtpClient mySmtpClient = new SmtpClient();
Line 20: mySmtpClient.Send(myMessage);
Line 21: }
Line 22: }
Source File: c:\HostingSpaces\sjurick\mydomain.com\wwwroot\Demo s\Email.aspx.cs Line: 20
------
I have double checked all syntax in all the related email.aspx, aspx.cs, and web.config and no errors showing. Would be happy to post all code if needed.
Thanks,
Steve
|