[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2006-11-12
3
Medium Priority
?
2,201 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

650 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