473,503 Members | 11,281 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
3 1918
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1604
by: Jimmy | last post by:
I am trying to send an attachment using SmtpMail. I am able to send an Excel or text file, but when I try to send a pdf file, it throws an exception: could not access CDO.Message object. The file...
1
1214
by: milorad | last post by:
Hi, there is one problem that's annoying me a lot: sometimes SmtpMail.Send(mailMessage) passes ok, but sometimes it throws NullReferenceException and kills program. I don't have a clue what...
6
2436
by: Cameron Eckman | last post by:
I get various errors when I try to use email on the machine I have. XP professional. It works fine on another machine with NT 2000 server. Below is the code: 'BEGIN CODE Dim oMail As New...
2
264
by: Kenneth P | last post by:
Hi, I'm tryong to use SmtpMail object but gets an error saying Configuratioonvalue "SendUsing# is not valid. Any ideas? TIA
2
1222
by: Arthur Carré | last post by:
Hi everyone. I have i big problem with the SmtpMail class of visual studio ..NET 2003. Here it is : I'm sending mail with attachment (1 or more) and if there is an exception after contacting...
2
2105
by: Zean Smith | last post by:
I have a SMTP server running on port 9025, but seems like this doesn't work. SmtpMail.SmtpServer = "192.168.34.15:9025"; SmtpMail.Send( mail ); I couldn't find any properties on SmtpMail...
1
950
by: Terry Olsen | last post by:
Evidently the SmtpMail class doesn't throw an exception when the SMTP server returns an error? It just lets you happily think the email was sent when actually it was rejected by the SMTP server. ...
4
3406
by: mmnenator | last post by:
When I send mail use smtpmail get error: Mailbox unavailable.(asp.net 2.0)
9
2448
by: An2 | last post by:
I have created vb.net dll which sends emails using SmtpMail.Send method. I am using the same dll in two exe projects lets call them projSlow and projfast. For projSlow - the first call to ...
5
1217
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
Hi, For years I have been using a simple method of sending email notifications from a Windows app for one of my clients using: System.Web.Mail.SmtpMail.SmtpServer ......
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7361
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3183
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.