Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2006-11-12
3
2,028 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
ID: 17928476
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
ID: 17964923
PAQd, 500 points refunded.

DarthMod
CS Moderator
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 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