How do I enable the MAPI subsystem in Outlook 2003?

G

Gary

We've built a small VC++ automation app.
Works with Eudora but not Outlook 2003.

MAPISendMail() fails MAPI_E_FAILURE

CDO is installed.

Thanks,
Gary
 
D

Dave Calkins

Experienced the same problem here. The below fixed it.

1) the attachment info (specifically the position argument) was not being
passed correctly. You need to pass in the below:

mfd.nPosition = (ULONG)-1;

2) we were using the login/logoff to create a new session and apparently
Outlook didn't like that; now we skip those APIs and just pass in NULL for
the session.

Dave
 
Top