A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Any Replacement for CDO and MAPI ?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 11th 09, 03:48 PM posted to microsoft.public.outlook.program_vba
Ladan
external usenet poster
 
Posts: 3
Default Any Replacement for CDO and MAPI ?

Hi,
I need to rewrite an application originally written for office 2003 (VBA).
It is an Access 2003 application that reads and parses email allerts from
outlook mailbox and puts the extracted info into Access database table. It
references CDO 1.2.1 .
As our company is going to use Exchange 2007, I need to rewrite this app, so
that it does not reference this library anymore and works fine with Exchange
server 2007. My company wants to get this application work without using CDO
and MAPI.

As CDO and MAPI is being eliminated eventualy, I need to know what is the
substitute for them.
I have done some googling and found Outlook Object Model and Exchange Web
Services. But I'm not quite sure which one to use, and if there is any better
option for me. Here is some lines of code that uses CDO:

Public objSession As MAPI.Session

Set objSession = CreateObject("MAPI.Session")

objSession.Logon ProfileInfo:=server & vbLf & mailBoxName ....

I need to be able to logon to a mailbox on server from any client machine.

I would appreciate if you can help me with this problem.


Ads
  #2  
Old June 11th 09, 05:41 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Any Replacement for CDO and MAPI ?

That all depends on where you want the code to run. If Outlook is installed
you can use the Outlook object model but you don't ever want to install
Outlook or Office on an Exchange server machine. Using Exchange Web services
is out of scope for an Outlook group, ask in an Exchange development group.

And CDO is still there and can still be used with Exchange 2007, and
Extended MAPI is in no way going away, it would destroy Exchange and
Outlook.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ladan" wrote in message
...
Hi,
I need to rewrite an application originally written for office 2003 (VBA).
It is an Access 2003 application that reads and parses email allerts from
outlook mailbox and puts the extracted info into Access database table. It
references CDO 1.2.1 .
As our company is going to use Exchange 2007, I need to rewrite this app,
so
that it does not reference this library anymore and works fine with
Exchange
server 2007. My company wants to get this application work without using
CDO
and MAPI.

As CDO and MAPI is being eliminated eventualy, I need to know what is the
substitute for them.
I have done some googling and found Outlook Object Model and Exchange Web
Services. But I'm not quite sure which one to use, and if there is any
better
option for me. Here is some lines of code that uses CDO:

Public objSession As MAPI.Session

Set objSession = CreateObject("MAPI.Session")

objSession.Logon ProfileInfo:=server & vbLf & mailBoxName ....

I need to be able to logon to a mailbox on server from any client machine.

I would appreciate if you can help me with this problem.



  #3  
Old June 11th 09, 08:31 PM posted to microsoft.public.outlook.program_vba
Ladan
external usenet poster
 
Posts: 3
Default Any Replacement for CDO and MAPI ?


Thanks for your reply.
My code is in an access application, running on client machine with outlook
2007 installed. It is supposed to access a mailbox other than the user's
mailbox on Exchenge server (2003) , and process some email allerts. It is
currently using CDO.dll but out company do not want that.

So you mean if I use Extended MAPI library, I can perform a logon like what
I do in CDO (e.g objSession.Logon ProfileInfo:=server & vbLf & mailBoxName
.....)?

I would appreciate if you send me any sample code in this regard.

Thanks
Ladan





  #4  
Old June 11th 09, 09:24 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Any Replacement for CDO and MAPI ?

You can access other users mailboxes using Namespace.GetSharedDefaultFolder
in teh Outlook Object Model.
plug Reemption (url) below exposes RDOSession.GetSharedMailbox and
RDOSession.GetSharedDefaultFolder and works in any version of Outlook
/plug

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ladan" wrote in message
...

Thanks for your reply.
My code is in an access application, running on client machine with
outlook
2007 installed. It is supposed to access a mailbox other than the user's
mailbox on Exchenge server (2003) , and process some email allerts. It is
currently using CDO.dll but out company do not want that.

So you mean if I use Extended MAPI library, I can perform a logon like
what
I do in CDO (e.g objSession.Logon ProfileInfo:=server & vbLf & mailBoxName
....)?

I would appreciate if you send me any sample code in this regard.

Thanks
Ladan







  #5  
Old June 11th 09, 11:53 PM posted to microsoft.public.outlook.program_vba
Ladan
external usenet poster
 
Posts: 3
Default Any Replacement for CDO and MAPI ?

Thanks for your reply.

Using Namespace.GetSharedDefaultFolder in OOM , I can open a shared folder
like a shared calander, but I need to access other mailboxes and be prompted
for user and password.

Regarding redemption, will there be support for it in exchange 2007 and 2010?

Regards,

  #6  
Old June 12th 09, 02:13 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Any Replacement for CDO and MAPI ?

If you want to use Extended MAPI you will need to research the code you will
need, but be aware that Extended MAPI won't work in any managed code (only
C++ or Delphi) and has a long learning curve unless you already know how to
program Extended MAPI.

I personally would use Redemption, which I use all the time for things like
that (www.dimastr.com/redemption).

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ladan" wrote in message
...

Thanks for your reply.
My code is in an access application, running on client machine with
outlook
2007 installed. It is supposed to access a mailbox other than the user's
mailbox on Exchenge server (2003) , and process some email allerts. It is
currently using CDO.dll but out company do not want that.

So you mean if I use Extended MAPI library, I can perform a logon like
what
I do in CDO (e.g objSession.Logon ProfileInfo:=server & vbLf & mailBoxName
....)?

I would appreciate if you send me any sample code in this regard.

Thanks
Ladan






  #7  
Old June 14th 09, 09:12 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Any Replacement for CDO and MAPI ?

Why do you need to be prompted for the user name and password?
Redemption fully supports Exchange 2007 and it will support Exchange 2010.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ladan" wrote in message
...
Thanks for your reply.

Using Namespace.GetSharedDefaultFolder in OOM , I can open a shared
folder
like a shared calander, but I need to access other mailboxes and be
prompted
for user and password.

Regarding redemption, will there be support for it in exchange 2007 and
2010?

Regards,



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacement for HTML Forms Unni Outlook - Using Forms 1 June 24th 08 01:02 PM
Outlook 2007 MAPI Replacement for VB6 ataylorm Outlook and VBA 1 May 22nd 07 08:05 PM
DTPicker replacement for Due Date control on Custom Task Form Michelle Outlook - Using Forms 0 May 30th 06 05:22 PM
Update/Replacement of an old Area Code in a number of contacts Sue Mosher [MVP-Outlook] Outlook - Using Contacts 0 January 19th 06 08:17 PM
Any way to install replacement instance of Outlook on replacement jazzyndn Outlook - Installation 2 January 19th 06 03:51 PM


All times are GMT +1. The time now is 06:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.