Any Replacement for CDO and MAPI ?

  • Thread starter Thread starter Ladan
  • Start date Start date
Status
Not open for further replies.
L

Ladan

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.
 
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.

"Ladan" <Ladan> wrote in message

news:4153282B-3F4D-4FE8-A3B5-42BF576B6BB9@microsoft.com...
> 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.

>
 
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
 
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)

-

"Ladan" <Ladan> wrote in message

news:451E5A18-4434-4539-82D2-3C9D32401EFC@microsoft.com...

> 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

>
 
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,
 
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).

"Ladan" <Ladan> wrote in message

news:451E5A18-4434-4539-82D2-3C9D32401EFC@microsoft.com...

> 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

>
 
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)

-

"Ladan" <Ladan> wrote in message

news:55DE1DED-60A1-4EA2-B8CD-C11466C4EF83@microsoft.com...
> 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,
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
Diane Poremsky Trial/Beta program for BCM replacement BCM (Business Contact Manager) 8
J Outlook replacement options - contact journal activities lost Using Outlook 23
O Hyperlink formatting lost after replacement in outlook Using Outlook 5
O Hyperlink formatting lost after replacement in outlook Using Outlook 0
T Outlook replacement form region using a "parent" Outlook VBA and Custom Forms 1
C Variable Attachments in CDO/OL2K7? Outlook VBA and Custom Forms 4
P CDO MAPI Session failing to retrieve user name but Getexchage user Outlook VBA and Custom Forms 2
M CDO hanging on Logoff Outlook VBA and Custom Forms 4
B Strange MAPI/Exchange/IMAP behaviour in OL 2016 under10.0.19044.2006 Using Outlook 0
pcunite Outlook 2019/O365 Build 13127.20408 errors when using MAPI calls Using Outlook 1
F MAPI, User Defined Fields and perspective after 20 years Outlook VBA and Custom Forms 0
Dennis Gaudenzi Your setup couldn't be started because of an unexpected error (mapi 0x80040604) Using Outlook 14
A How to enable outlook room finder (outlook connector (mapi)) user ? Using Outlook 3
J Unwanted US Holiday Contact folder in Outlook.com syncs to MAPI/Phone Address book Using Outlook.com accounts in Outlook 9
P office 2013 communigate mapi Using Outlook 0
S Outlook 2013 MAPI 1.0 Error Using Outlook 2
L Mapi folder.FIND: error Using Outlook 0
J [outlook-users] Icloud + Mapi profile + Using Outlook 1
C MAPI to access a 64 bit Outlook from a 32 bit application; or access via ODBC Using Outlook 0
K Two MAPI Accounts One Contacts data set Using Outlook.com accounts in Outlook 2
E Redemption MAPI access(c#) Outlook VBA and Custom Forms 4
E Google MAPI account Outlook VBA and Custom Forms 4
R Create a new contact use MAPI? Outlook VBA and Custom Forms 2
A Generating valid MAPI URLs for Outlook 2003 Outlook VBA and Custom Forms 2
M Custom mapi is not displayed in the readingpane. Why? Outlook VBA and Custom Forms 1
M How to install custom mapi form programmatically? Outlook VBA and Custom Forms 1
M How to add a message to a mapi view folder Outlook VBA and Custom Forms 1
T Setting a MAPI property of type PT_SYSTIME Outlook VBA and Custom Forms 4
T Simple MAPI send and Outlook COM addin Outlook VBA and Custom Forms 3
D using extended MAPI Outlook VBA and Custom Forms 1
Q MAPI Read-only Folder Outlook VBA and Custom Forms 3
D MAPI programming issue - outbox doesn't exist? Outlook VBA and Custom Forms 2

Similar threads

Back
Top