Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / December 2004

Tip: Looking for answers? Try searching our database.

Send out email using CDO

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Li Weng - 08 Nov 2004 18:54 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.