Hi,
I tried to send out email using CDO:
1. Add reference: Microsoft CDO for Exchange 2000
2. Dim objSession As Object
objSession = CreateObject("MAPI.session")
But I got error: Cannot create ActiveX component (point to above line)
Could you help me with it?
Thanks in advance.
Li
"Peter Huang" - 09 Nov 2004 03:52 GMT
Hi
Have you tried to add a COM reference to the Microsoft CDO for exchange
2000 library by right click on the reference and select add reference.
In the forwarding dialog, select COM tab and select the Microsoft CDO for
exchange 2000 library.
If you can not find that library, it may be caused by that you have not
installed the library.
Usually, the library is installed with exchange server, after installation,
you will find cdoex.dll in the location below.
C:\Program Files\Common Files\Microsoft Shared\CDO\CDOEX.DLL
Hope this helps.
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Igor - 09 Nov 2004 14:45 GMT
Hi,
Try to see the following link:
http://support.microsoft.com/default.aspx?scid=kb;en-us;327219
Btw, why don't you try System.Web.Mail? It is much simpler, I think.
wl@newsgroup.nospam> wrote in message
news:4E64C26E-E5B7-4E7D-B0A9-9DA53867F897@microsoft.com...
> Hi,
>
[quoted text clipped - 11 lines]
>
> Li
Li Weng - 09 Nov 2004 15:54 GMT
Thanks, Peter and Igor.
I need to retrieve email, Web.Mail doesn't support.
I guess the problem is I didn't run program on Exchange server. I plan to
use WebDAV instead.
Li
> Hi,
>
[quoted text clipped - 20 lines]
> >
> > Li
"Peter Huang" - 10 Nov 2004 02:49 GMT
Hi
If you still have any concern please feel free to post here.
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Steven Colby - 25 Dec 2004 07:15 GMT
Hi Guys -
My problem is closely related to this thread - CDO and the System.Web.Mail
.NET object. My simple 10-line test program works fine on WinXP and
Server2000, but fails on Server2003 (all boxes on the same network, all can
ping the mail server).
The error is:
System.Web.HttpException: Could not access 'CDO.Message' object. --->
System.Reflection.TargetInvocationException: Excep
tion has been thrown by the target of an invocation. --->
System.Runtime.InteropServices.COMException (0x80040213): The
transport failed to connect to the server.
The Server2003 box has CDOSYS.dll but not CDOEX.dll; according to the PRB
link previously mentioned in this thread that's OK, since the Server2003 box
does not run Exchange.
Any ideas? Anything else 'special' about Server2003 and CDO?
Thanks!
Steven Colby
> Hi
>
[quoted text clipped - 7 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.