'CDO.Message' object. Error

  • Thread starter Thread starter Rudy Mark
  • Start date Start date
R

Rudy Mark

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
 
* "Rudy Mark said:
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?
 
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
 
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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Hi again,

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncdsys/html/cdo_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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Back
Top