?
Solved

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

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

Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

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.   …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

800 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