473,587 Members | 2,548 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Transport Failed to connect to the Server.

When i am trying to send in asp.net i am geting this Error
Message:Transpo rt Failed to connect to the Server. I am using SMTP
server in my localMachine and Sify connction
I am New to ASP.Net
MY Code:
private void Button1_Click(o bject sender, System.EventArg s e)
{
MailMessage mail = new MailMessage();
mail.To=Request .Form["to"];
mail.From =Request.Form ["from"];
if (Request.Form["format"].Equals("text") )
mail.BodyFormat = MailFormat.Text ;
else
mail.BodyFormat = MailFormat.Html ;
mail.Subject =Request.Form["subject"];
mail.Body = Request.Form["body"];
SmtpMail.SmtpSe rver="asmtp.sif ybroadband.com" ;
SmtpMail.Send(m ail);
Response.Flush( );
Message.Text="M essage Sent....<br><br >"+
"<a href=\"sendMail .aspx\">Go Back</A>";

}
Error Shows in this line SmtpMail.Send(m ail);

Dec 20 '05 #1
1 2147
Hi,

see this:

http://www.systemwebmail.com/faq/4.3.9.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"Sudhan" <jr*******@gmai l.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
When i am trying to send in asp.net i am geting this Error
Message:Transpo rt Failed to connect to the Server. I am using SMTP
server in my localMachine and Sify connction
I am New to ASP.Net
MY Code:
private void Button1_Click(o bject sender, System.EventArg s e)
{
MailMessage mail = new MailMessage();
mail.To=Request .Form["to"];
mail.From =Request.Form ["from"];
if (Request.Form["format"].Equals("text") )
mail.BodyFormat = MailFormat.Text ;
else
mail.BodyFormat = MailFormat.Html ;
mail.Subject =Request.Form["subject"];
mail.Body = Request.Form["body"];
SmtpMail.SmtpSe rver="asmtp.sif ybroadband.com" ;
SmtpMail.Send(m ail);
Response.Flush( );
Message.Text="M essage Sent....<br><br >"+
"<a href=\"sendMail .aspx\">Go Back</A>";

}
Error Shows in this line SmtpMail.Send(m ail);

Dec 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2347
by: Lori McDonald | last post by:
I have code that I am using to sent an HTML email. (see code below) Intermittently I am getting the following error when I try and send an email message from ASP.Net code on my server. 80% of the time it works fine -- but 20% of the time it fails with the following message: The transport failed to connect to the server. I am setting the...
0
1361
by: mamatha | last post by:
Hi i have one email application in VB.I want to send an Email through SMTP server.While i am sending it gives error like"transport failed to connect to the server" can help anyone for me Mamatha
0
1457
by: Mary | last post by:
I have set up an application server for .NET web applications on a new 2003 virtual server. Suddenly I am getting the following: COMException (0x80040213): The transport failed to connect to the server. from our applications. I have aready checked the source code and it is pointing to local host for the SMTP server. The permissions...
0
1859
by: Hawksey | last post by:
Hello, Has anyone else experienced a similar problem. We get an intermittent error trying to send mail using smtpmail. Our SmtpMail.SmtpServer is a different server to our web application servers. Every now and again my error logs will indicate that the sendmail method failed with the exception "Could not Access CDO Message Object" with an...
5
2488
by: Nathan Sokalski | last post by:
I am attempting to send an email using ASP.NET 1.1's Mail.SmtpMail.Send() method. My code contains all of the following: Dim mailmsg As New Mail.MailMessage Mail.SmtpMail.SmtpServer = System.Configuration.ConfigurationSettings.AppSettings("smtpserver") mailmsg.BodyFormat = Mail.MailFormat.Text mailmsg.Subject = "My Subject"
0
1875
jpcarre
by: jpcarre | last post by:
Hello all, I have a testing server and a development server. In the testing server my CDOSYS email application works fine, I am using an external smtp port which is smtp.serv.cgnet.com , however, when I test this same program in the development server I receive the following error message : CDO.Message.1 error '80040213' The transport...
0
2692
by: wizromeo | last post by:
Hello, Has anyone else experienced a similar problem. We get an intermittent error trying to send mail using smtpmail. Our SmtpMail.SmtpServer is a different server to our web application servers. Every now and again my error logs will indicate that the sendmail method failed with the exception "Could not Access CDO Message Object" with an...
1
2222
by: dancer | last post by:
Using Framework 1.1, ASP.net 1.1 I test my applications that send e-mail on my personal computer : iis - local host - wwwroot - no problems. Then all of a sudden I get this error: "Transport failed to connect to the server" I try applications that HAVE RUN FINE IN THE PAST. Still this error. I download to my hosting server, and the...
0
5253
by: daredevil | last post by:
hi all, i am newbie here. i was trying to send mail from ASP, but i encountered the error as below:- CDO.Message.1 (0x80040213) The transport failed to connect to the server. i already google about the error and tried to fix error, but seems like the error unable to solve. Hope that someone can help me with the error. thanks a lot in...
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8347
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.