Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
from last two three days i get this error message althoug it was sending mail before no change in code.

The transport failed to connect to the server
Posted

Did you try this[^]?
 
Share this answer
 
The possible cause of this error is Smtp.Mail unable to locate your exchange server. Try checking the firewall for port 25 on which the Exchange server is configured.

Also, first try setting
SmtpMail.SmtpServer="localhost";
on the development machine. It should work.

Further, try specifying IP Address instead of name in SmtpServer property.
 
Share this answer
 

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



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