By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,070 Members | 1,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,070 IT Pros & Developers. It's quick & easy.

SmtpMail Error-Could not access 'CDO.Message' object.".

P: n/a
Hi

I am using SmtpMail class for mail sending. I could able to send mail using
my mailse server to our LAN. But when I tried external addresses it showed
the exception
Message "Could not access 'CDO.Message' object.".

Can anybody help me to solve this probelm

Jik
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Is ur SMTP server running the same server as ur .net
application?
Do u mean to say all internal mails that belong to ur
domain work and external mails dnt work?

ravi sankar
-----Original Message-----
Hi

I am using SmtpMail class for mail sending. I could able to send mail usingmy mailse server to our LAN. But when I tried external addresses it showedthe exception
Message "Could not access 'CDO.Message' object.".

Can anybody help me to solve this probelm

Jik
.

Nov 17 '05 #2

P: n/a
Have you checked the permissions on your SMTP server? This error can occur
when your ASP.Net account doesn't have the correct permissions on the SMTP
server, or if the server doesn't allow Relaying, and you are trying to use a
return address other than the SMTP server's domain.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
The more I learn, the less I know.

"Jibu" <ji*********@stabilixindia.biz> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi

I am using SmtpMail class for mail sending. I could able to send mail using my mailse server to our LAN. But when I tried external addresses it showed
the exception
Message "Could not access 'CDO.Message' object.".

Can anybody help me to solve this probelm

Jik

Nov 17 '05 #3

P: n/a
Jik,

Try NOT setting the smtpserver property, that 's what worked for me.
Otherwise try itterating through the innerExceptions to find out what's
really going wrong.
HTH

Jurjen de Groot
G.I.T.S., Netherlands
"Jibu" <ji*********@stabilixindia.biz> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi

I am using SmtpMail class for mail sending. I could able to send mail using my mailse server to our LAN. But when I tried external addresses it showed
the exception
Message "Could not access 'CDO.Message' object.".

Can anybody help me to solve this probelm

Jik

Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.