Solved

The transport lost its connection to the server. - Could not access 'CDO.Message' object.

Posted on 2006-11-12
3
1,963 Views
Last Modified: 2008-03-03
I’ve written the below basic smtp email function:

----------------------------

MailMessage myMessage = new MailMessage();
myMessage.From = "web@mydomain.edu";
//myMessage.To = "student@hotmail.com"; //> Does NOT Work
//myMessage.To = "invalid@mydomain.edu";//> Does NOT Work
myMessage.To = "valid@tamu.edu";        //> Does Work
   
myMessage.Subject = "TEST";
myMessage.BodyFormat = MailFormat.Text;
myMessage.Body = "TEST";
SmtpMail.SmtpServer = "mail.mydomain.edu";

SmtpMail.Send(myMessage);

----------------------------

It will send a message to a valid email address on myDomain.
It will throw an error for an invalid email on my domain or any email off my domain.
I'm trying to figure out what the difference between these two scenarios are and how to fix it.

I get the error message:
The transport lost its connection to the server.
Could not access 'CDO.Message' object.

I went to http://systemwebmail.com/faq/ and tried the below alternate SmtpServer configurations but still get the same error message.

SmtpMail.SmtpServer.Insert(0, "mail.qatar.tamu.edu");
SmtpMail.SmtpServer = "192.101.101.101";
0
Comment
Question by:TAMUQITS
3 Comments
 

Author Comment

by:TAMUQITS
Comment Utility
We solved the issue. It turns out our Open Relay Filter was blocking any mail sent to an address outside of our domain.

The mail admin had to white list our applications box and it worked right away.
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
Comment Utility
PAQd, 500 points refunded.

DarthMod
CS Moderator
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now