Hi, Do you use the System.Web.Mail.SmtpMail.SmtpServer property? If not, then set it to the name of your smtp-server.
Hth! Regards, Andreas H�ber > -----Original Message----- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of > Sujay Suresh Maheshwari > Sent: Wednesday, August 27, 2003 6:20 PM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] SMTP problem > Importance: High > > Hi group, > > > > I am sending mail from one of my web pages and I am getting > this error - > > > > > "The transport failed to connect to the server" > > > > 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.Runtime.InteropServices.COMException: The > transport failed to connect to the server. > > > > The fact is I do not have the SMTP server running on my web > server. I am > accessing the smtp server in a network Lan domain. So what > should I do? > Do I have to run SMTP server on my machine and thru this local server > connect to the LAN SMTP server? > > > > I am not able to proceed. Please help > > > > Regards, > > > > Sujay > > > =================================== > This list is hosted by DevelopMentor. http://www.develop.com > NEW! ASP.NET courses you may be interested in: > > 2 Days of ASP.NET, 29 Sept 2003, in Redmond > http://www.develop.com/courses/2daspdotnet > > Guerrilla ASP.NET, 13 Oct 2003, in Boston > http://www.develop.com/courses/gaspdotnet > > View archives and manage your subscription(s) at > http://discuss.develop.com > > =================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com
