Solved

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

Posted on 2006-11-12
3
2,118 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
[X]
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
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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

717 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