473,659 Members | 2,666 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 1927
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*********@st abilixindia.biz > wrote in message
news:%2******** ********@tk2msf tngp13.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*********@st abilixindia.biz > wrote in message
news:%2******** ********@tk2msf tngp13.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
1618
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 size is about 1.92 MB. I was wondering what could be the factors that result in such an exception. I am using C# .Net and Windows XP Pro. Thanks, Jimmy
1
1220
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 can it be, so if anyone knows i will appreciate the help. Marko
6
2448
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 MailMessage() With oMail .From = "mypc@baxglobal.com" .To = "ceckman@baxglobal.com"
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
1229
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 the SMTP server, i can catch this error in a try catch, but the mail appear to stuck in the aspnet service (aspnet_wp.exe). What make me tell that, is the attachment cannot be deleted because of acces protection.
2
2113
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 let me configure the port number, any idea?
1
954
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. I found this out by having my app connect to DevNull's Dummy SMTP server. Seems I was sending just the @domain part of the "FROM" address. Correcting that got my emails going. Now, how do I get the From to display a friendly name instead of my...
4
3412
by: mmnenator | last post by:
When I send mail use smtpmail get error: Mailbox unavailable.(asp.net 2.0)
9
2460
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 SmtpMail.Send takes about 12 seconds the next call takes less then 1 sec, in projefast I don't see any preformance issues all calls take less then 1 sec. Both projSlow and projFast are executed on same machine windows 2000. Why is call to SmtpMail.Send...
5
1220
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 ... System.Web.Mail.SmtpMail.Send ... It has been very reliable and stable. However, his provider is now requiring that it be sent to a specific port, and may also require
0
8427
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8330
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8850
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8626
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4175
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.