Tonyg
06-26-2007, 02:46 AM
Hello.
I'm trying to figure out why i get an error when i try to use send an email from my website hosted here.
I have this in the web.config
<system.net>
<mailSettings>
<smtp from="tony@lakesideos.com">
<network host="localhost" password="" userName="" />
</smtp>
</mailSettings>
</system.net>
Do i need to set up an email address and password with DASP for this to work?
Thanks,
Tony
Here is the error i'm getting:
Server Error in '/' Application.
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
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.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Source Error:
Line 76: smtp.UseDefaultCredentials = False
Line 77: smtp.Credentials = a
Line 78: smtp.Send(msgMail)
Line 79: Response.Redirect("~/default.aspx")
Line 80: End Sub
Source File: E:\web\girgentiinf\htdocs\Admin\Email.aspx.vb Line: 78
I'm trying to figure out why i get an error when i try to use send an email from my website hosted here.
I have this in the web.config
<system.net>
<mailSettings>
<smtp from="tony@lakesideos.com">
<network host="localhost" password="" userName="" />
</smtp>
</mailSettings>
</system.net>
Do i need to set up an email address and password with DASP for this to work?
Thanks,
Tony
Here is the error i'm getting:
Server Error in '/' Application.
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
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.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Source Error:
Line 76: smtp.UseDefaultCredentials = False
Line 77: smtp.Credentials = a
Line 78: smtp.Send(msgMail)
Line 79: Response.Redirect("~/default.aspx")
Line 80: End Sub
Source File: E:\web\girgentiinf\htdocs\Admin\Email.aspx.vb Line: 78