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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top