Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 16th, 2005, 11:11 PM
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default The transport failed to connect to the server.

I got this error when my code is:

MyMail.From = "sFrom";
            MyMail.To = txtto.Text.Trim();
            MyMail.Subject = "Test Mail";
            MyMail.Body = txtmessage.Text.Trim();




            SmtpMail.SmtpServer = mydomain;
            SmtpMail.Send(MyMail);

Anoop. H
Software Engineer,
CTIS, Trivandrum.
 
Old June 17th, 2005, 07:58 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It would seem to me that the error message says it all.

What is the value of mydomain? Is that a valid mail server?

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
The transport failed to connect to the server. rclgoriparthi ASP.NET 2.0 Professional 2 August 26th, 2008 04:25 AM
Unable to connect. the connection failed kau_shuk VB.NET 2002/2003 Basics 0 December 29th, 2007 02:05 AM
chaptePHP Failed to connect to mailserver at port GOUR CHANDRA PAUL BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 December 7th, 2005 07:21 PM
Server.CreateObject Failed ckwizard77 Classic ASP Components 2 October 23rd, 2004 09:41 AM
[000] Unable to connect to server 'SERVER\SQL'; SQ ctanchan SQL Server 2000 1 August 15th, 2003 07:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.