473,387 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

'CDO.Message' object. Error

My developement environment in VB.Net
I am using the following code to send email.

Dim objMail As New System.Web.Mail.MailMessage()
Dim objConn As System.Web.Mail.SmtpMail
Nov 20 '05 #1
4 1339
* "Rudy Mark" <Ru*********@yahoo.com> scripsit:
My developement environment in VB.Net
I am using the following code to send email.

Dim objMail As New System.Web.Mail.MailMessage()
Dim objConn As System.Web.Mail.SmtpMail
.
.

When I sent email to my office email. It works great. However If I send to
to my hotmail account, it throws the error message. Message is as follows.

"Could not access 'CDO.Message' object."

My excahnge server is Microsoft Exchange Server.


Are you sure IIS is installed on the machine?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Cor
Hi Rudy,

If this means that mails intern in your organisation goes fine and outside
your organisation goes wrong, than it has probably to with the setting of
the Exchange server or maybe that is even not connected to Internet, but I
don't think that it has to do with the program.

But to know that better,
Why not put this in a try, catch end catch block
Rough written
\\\
Try
Dim objMail As New System.Web.Mail.MailMessage()
Dim objConn As System.Web.Mail.SmtpMail
Catch ex as exception
Messagebox.show(ex)
End try
///

Then you can see on a nicer way what exception is thrown

Cor
When I sent email to my office email. It works great. However If I send to
to my hotmail account, it throws the error message. Message is as follows.

Nov 20 '05 #3
Nak
Hi Rudy,

The CDO objects are *not* installed with IIS on Windows XP Professional,
regardless of what people think. I know this as I have exactly that setup
and I had to install the "Collaboration Data Objects" that come with
Outlook, for me it was Outlook 2002.

The CDO objects *are* installed with other packages too, like Windows
2000 server I believe.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #4
Nak
Hi again,

http://msdn.microsoft.com/library/de...do_roadmap.asp

The above URL *might* be helpful, it seems to say what software the objects
ship with, though this may be regarding an older version I suspect it is
pretty much the same.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Hugh Welford | last post by:
Hi Using WIN XP and FP2000 Using CDO.message to out put a message from my site, I get the following error message 8004020f from using the code:- strsql = "SELECT * FROM details WHERE patid...
4
by: Thys Brits | last post by:
Hi, I'm using the System.Web.Mail class to send an e-mail from my ASP.Net application, but when sending the e-mail, I'm getting the above error. It seems to be because I have Office XP...
3
by: chris | last post by:
hi i am trying to send a mail using C# and asp.net but i get the following error, object objMail = Server.CreateObject("CDO.Message"); objMail.From = "chris@hotmail.com"; objMail.To =...
5
by: matt dittman | last post by:
I have created a windows service that reads emails from a drop directory and moves them to the appropriate mail folder every 15 seconds. I can move, rename and delete the files as needed, up...
14
by: Neil Ginsberg | last post by:
I am using VBA/Access to send SMTP mail using CDO. I set a reference to "Microsoft CDO for Windows 2000 Library" (cdosys.dll). Everything works fine, both on my PC and on another PC. However, on...
2
by: Desmond | last post by:
Hi, I would really appreciate if somebody could give some advise on this. I've a ASP.NET application that is supposed to send emails and it is tested to be working well on IIS 5.0 and tested...
4
by: dwa | last post by:
We're trying to use the CDO Message object to send an SMTP message with ..NET. Testing the code on a machine with FAT32 file system, everything works fine. Running under XP or Win2K with NTFS,...
8
by: Li Pang | last post by:
Hi, I used following codes to pass a message item from CDO to Outlook. They worked fine when I used outlook 2000, but get an error of "Specified cast is not valid." when I used Outlook 2003....
5
by: Alain | last post by:
Hi, I am trying to figure out why I get the following error when I try to send a mail from an ASP.NET (1.1) application. When I use the same code from a Windows exe then the code works...
0
by: daredevil | last post by:
hi all, i am newbie here. i was trying to send mail from ASP, but i encountered the error as below:- CDO.Message.1 (0x80040213) The transport failed to connect to the server. i already google...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.