help with contact form

Associate
Joined
12 Aug 2007
Posts
100
here is the error code i keep getting when the contact us form, it is meant to send the details to my email.
i have made an email address up just to post on here, just in case you point out the email address is wrong

can someone help

thanks in advance

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 83.245.63.64:25
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 83.245.63.64:25

Source Error:


Line 63: mailClient.Credentials =
Line 64: new System.Net.NetworkCredential("user", "pass");
Line 65: mailClient.Send(message);
Line 66: mailClient = null;
Line 67:
 
Last edited:
Your smtp server, 83.245.63.64 doesn't exist or is denying connections. I can't telnet to it either so I assume it's not the right IP.
 
ive just changed the ip address and now i get this message

Server Error in '/' Application.
--------------------------------------------------------------------------------

Unable to read data from the transport connection: net_io_connectionclosed.
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.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.

Source Error:


Line 63: mailClient.Credentials =
Line 64: new System.Net.NetworkCredential("user", "pass");
Line 65: mailClient.Send(message);
Line 66: mailClient = null;
Line 67:

it is saying line 65 is the problem.
 
Last edited:
Sounds like the SMTP server is still wrong. Can you telnet to the server?

Open up a command prompt and type:
telnet mailserverip 25

What does it say?
 
Sounds like the SMTP server is still wrong. Can you telnet to the server?

Open up a command prompt and type:
telnet mailserverip 25

What does it say?

Just to note, if I do this with my webhost's SMTP server, it gives me a blank screen once it connects.

Type ehlo and then press Return, and you should get something returned.
 
Back
Top Bottom