Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Transport Failed to connect to the Server.

Reply
Thread Tools

Transport Failed to connect to the Server.

 
 
Sudhan
Guest
Posts: n/a
 
      12-20-2005
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);

 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      12-20-2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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);
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET mail error: The transport failed to connect to the server James Lankford ASP .Net 14 07-16-2008 02:24 PM
0x80040213 The Transport failed to connect to the server-Random Er =?Utf-8?B?bmJpc3NldHRl?= ASP .Net 1 10-02-2006 08:08 PM
want to replace a read only cd transport with read / write transport larya Computer Support 7 09-11-2006 10:21 PM
CDO Question: transport failed to connect to the server Lori McDonald ASP .Net 0 02-16-2004 08:09 PM
The transport failed to connect - Error Handling - TRY/CATCH jason@cyberpine.com ASP .Net 2 02-03-2004 08:11 PM



Advertisments