473,513 Members | 13,099 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:Transport 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(object sender, System.EventArgs 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.SmtpServer="asmtp.sifybroadband.com";
SmtpMail.Send(mail);
Response.Flush();
Message.Text="Message Sent....<br><br>"+
"<a href=\"sendMail.aspx\">Go Back</A>";

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

Dec 20 '05 #1
1 2141
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*******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
When i am trying to send in asp.net i am geting this Error
Message:Transport 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(object sender, System.EventArgs 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.SmtpServer="asmtp.sifybroadband.com";
SmtpMail.Send(mail);
Response.Flush();
Message.Text="Message Sent....<br><br>"+
"<a href=\"sendMail.aspx\">Go Back</A>";

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

Dec 20 '05 #2

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

Similar topics

0
2326
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...
0
1324
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 ...
0
1448
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...
0
1849
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...
5
2475
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 =...
0
1866
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,...
0
2677
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...
1
2213
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...
0
5225
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...
0
7254
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,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7373
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,...
0
7519
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5677
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,...
1
5079
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...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1585
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 ...
0
452
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...

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.