473,761 Members | 4,511 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET mail error: The transport failed to connect to the server

Hello group:

I have reached the end of my rope with this error. I have pretty much tried every suggestion I've found thus far and I
get this error no matter what I do. I did try using the CDOSYS test from Microsoft as a test for the smtpserver, and it'll send that way.
Here's my existing code:

Public Sub SendMail()

Dim myMailMsg As New Mail.MailMessag e()

With myMailMsg
.To = "<Send to address">
.From = <"Send From Address">
.Subject = "Test message"
.Body = "This is a test."
.BodyFormat = Mail.MailFormat .Text
End With

Mail.SmtpMail.S mtpServer = "<smtp server>"
Mail.SmtpMail.S end(myMailMsg)

End Sub

For my SmtpServer, I've used localhost, smarthost, the actual value of our corporate smtp server address - nothing changes. I always get that
error message.

I have modifed the machine.config file, given the ASP.NET user process admin (temp) access, assigned the machine id of 127.0.0.1 to the Access tab for the relay settings, and every other suggestion I've found - nothing at all seems to make any change. I'm using Windows Server 2003.

Can someone please help me? I don't know what else to do.

Thanks,

James Lankford
Nov 17 '05
12 10373


James Lankford
MCSE
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #11
Hi James,

Thank you for your update but I cannot see the content of your post. It is
empty.

Would you please repost it? I certainly appreciate your time.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #12
Hi,

I have been getting this error for some time now. What is getting
strange is that:
1. The same code works on our dev and prod servers but not on my
workstation;
2. The code sample from Microsoft's site works on my workstation.

What IS the real problem here?

Thanks a lot,

John

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #13

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

Similar topics

2
2211
by: jason | last post by:
I discovered this morning that a few of my sites have routines to automatically email when pages are accessed. These pages were down becuase the the smtp server I'm using was down. I would see a delay to load the page for about 10 seconds followed by the : The transport failed to connect error. using the following code to email: SmtpMail.Send(mail)
0
2352
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 mail server via the IP address. It actually is the local mail server, but I didn't want to have any...
1
2153
by: Sudhan | last post by:
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; mail.From =Request.Form ;
0
1875
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 inner exception of "The transport failed to connect to the server". The funny thing is the method...
5
2495
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
2706
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 inner exception of "The transport failed to connect to the server". The funny thing is the method...
1
2226
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 application runs without problems. I changed nothing in my iis setup.
8
6734
by: kpdeepu | last post by:
Hi all, I am a complete newbie to ASP and am trying to send email from my gmail account to another gmail ID. Is it possible? I have my computer with no mail server installed. i have IIS installed and working. i have used the following code. I am getting the error.. CDO.Message.1 (0x80040213) The transport failed to connect to the server. the error is throwing at '.Send' line. the actual mail IDs given in from and to are real and...
5
4691
by: Don Quijote de Nicaragua | last post by:
Hi, everyone I try to send a simple e-mail witch this Code, but always send me a error messages: "ERROR: Failure sending mail." Thansk You. Don Quijote de Nicaragua. Elder Soto. Dim correo As New System.Net.Mail.MailMessage() correo.From = New System.Net.Mail.MailAddress("MyAco...@turbonett.com.ni")
0
5288
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 advance. below are the codes that i applied.... <!--METADATA TYPE="typelib"...
0
9377
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9925
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8814
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5266
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3913
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
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.