.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

transport failed to connect to server

Posted By: srichanti007     Posted Date: October 31, 2009    Points:2   Category :ASP.Net
Exception Details: System.Runtime.InteropServices.COMException: The transport failed to connect to the server.

Source Error:

Line 84: System.Web.Mail.SmtpMail.SmtpServer = "";//use ur SmtpServer Number.
Line 85: // System.Net.Mail.SmtpClient=
Line 86: System.Web.Mail.SmtpMail.Send(mail);
Line 87:
Line 88: Response.Write("Username and Password has been sent to ur Mail ID");

Author: Amit Mehra             
Posted Date: October 31, 2009     Points: 5   

HI Srichanti,

It seems like you SMTP server information is wrong. Please check the SMTP Server IP Address and also if it requires authentication than supply the smtp user name and password for authentication on SmtpClient object.


Please "Mark As Answer " if this post help you.
Author: saminathan L             
Posted Date: November 04, 2009     Points: 5   

Hi Srikanttchi

First check ur codings using with gmail smtp port 465.

And some format is not correct in ur codings

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend