Could not access 'CDO.Message' object

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

G'day

When trying to send a mail from an ASP.NET page using the 'SmtpMail.Send' Method, I get a "Could not access 'CDO.Message' object" error (on Windows 2000 Server, with IIS 5.0)

Do I need Exchange Server 2000 or 2003? How do I kwnow, what version of Exchange Server is installed
Is the Problem related to Exchange server anyway

Thanks a lot
Lutz
 
Hi Lutz,

See these links
http://www.microeye.com/resources/res_outlookvsnet.htm

http://msdn.microsoft.com/library/d...html/frlrfsystemwebmailsmtpmailclasstopic.asp

http://msdn.microsoft.com/library/d.../cdosys/html/_cdosys_schema_configuration.asp

http://msdn.microsoft.com/library/d...y/en-us/exchanchor/htms/msexchsvr_cdo_top.asp


The four CDOs are (in chronological order):

- CDO.DLL : CDO version 1.2.1
- CDONTS.DLL : CDO version 1.2.1 for Windows NT Server (not the same as CDO
version 1.2.1!)
- CDOSYS.DLL : CDO for Windows 2000
- CDOEX.DLL : CDO for Exchange 2000 Server


I hope this helps a little bit?

Cor
 
Hmmm,

the CDO.Message object that lives in the cdosys.dll is fine, the
registry knows about it and is fine, too. Instead, I extracted the inner
exceptions and the message of the inner exception of the inner exception
of the exception thrown by the SmtpMail.Send method tells me:

"The message could not be sent to the SMTP server. The transport error
code was 0x800ccc15. The server response was not available "

which is strange because Microsoft Outlook will send messages to just
the same smtp server without errors.

???

Thanks anyway.
 
Lutz Winter said:
"The message could not be sent to the SMTP server. The transport error
code was 0x800ccc15. The server response was not available "

which is strange because Microsoft Outlook will send messages to just
the same smtp server without errors.

CDO isnt very good about error reporting. I have the same troubles with
Outlook and thus fixing network problems is a real chore.

You might try Indy which has a more complete implementation of SMTP and
reports errors better. Its free BTW.

http://www.indyproject.org/


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
 
Back
Top