Question

I've got a legacy application that calls outlook using extended MAPI to send out emails. Outlook is quite unstable, doesnt run as a service and can't handle a lot of emails so I am searching for a way to have outlook replaced. If there is no third party solution I guess I will have to figure out how to create a MAPI dll that emulates what outlook's MAPI dll. I did some googling, found code that exports the 12 simple MAPI functions but very little info for extended MAPI. As far as possible, I prefer to use Delphi or Lazarus (which supports 64bit?) to create the dll. Is there some way I can use to capture the extended MAPI calls. Meanwhile I found some info on WINE docs - http://source.winehq.org/WineAPI/mapi32.html

Would appreciate any pointers. :)

Was it helpful?

Solution

Don't do that: MAPI is not just a dll, it ia set of providers (PST, Exchange, etc.) that plug in. Have you looked into the standalone version of MAPI? http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&id=1004 It can be used from a service just fine. Also, if you are using Extended MAPI only, why are you trying to run Outlook in a service? While it is indeed cannot be used in a service, the MAPI system that most versions of Outlook install can be used in a service just fine.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top