Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDO under Windows XP 1

Status
Not open for further replies.

Glasgow

IS-IT--Management
Jul 30, 2001
1,669
GB
I want to experiment with email under VB (using Windows XP). In particular, I'd like to use whatever technology will best support different email clients (especially Outlook and Outlook express) and searches on this forum suggest that CDO may be my best bet. I have a couple of questions:

a) Am I right in thinking that CDO will support different email clients?

a) What/where is the relevant DLL? Is it CDOSYS.DLL - when I browse for and open this (it exists) in project references, it seems to have no effect.

Thanks in advance.


 
When using CDO, be aware that it is for client-side only. If this is going to run on ther server then you will want to use something else, like CDONTS.

Microsoft has some good help on this at

Select Messaging and Collaboration >>> Collaboration Data Objects >>> and I used CDO for Windows 2000 even though I'm developing on an XP environment. Worked pretty easy for me

I don't know about supporting other e-mail clients outside of Outlook.

Hope this helps start you on your way.

baugie
[cheers]
 
My optimism may be premature. The link in my previous post suggests that if a reference to CDOEX.DLL is added, all should be well. I have done so but my code:

Dim MailLink As Object
Set MailLink = CreateObject("MAPI.Session")

fails with ActiveX component can't create object.
 
Paul - I think we posted virtually simultaneously - thanks for references to threads. Having installed Office XP, I am apparently stuck with CDOEX.DLL which is supposedly a superset of CDOSYS.DLL. But even once I have added that reference, I still get the problem in my previous post - should the code in that post work or am I doing something really dumb?
 
Glasgow,

Your code is for CDO 1.21 (a MAPI library), not CDO for Exchange (a SMTP library).

CDO 1.21 is part of an Outlook install but since OL2000, you have to select it during a custom install.

Re CDOEX: just search MSDN for "CDO for Exchange" and you will get plenty of examples. They're usually VBScript but can be easily adapted.

Paul Bent
Northwind IT Systems
 
Sorry for delay on this - traded delights of VB for Xmas pud, turkey, Great Escape, vast quantities of lager etc for a full 2 weeks.

Anyway, thanks Paul:

>CDO 1.21 is part of an Outlook install but since OL2000, you have to select it during a custom install.

was the key. I'm up and running now having loaded CDO 1.21 from Outlook CD - well, on to the next stage at least. Have a well deserved star.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top