MAPISendMail returns MAPI_E_FAILURE when Outlook 2013 is running.

Hi,

I'm using MAPISendMail and under some customer's machine it always returns MAPI_E_FAILURE(2) when Outlook 2013 is running.

The code is like bellow,

MAPISendMail(0,0L,&Message,MAPI_LOGON_UI|MAPI_DIALOG,0L);

But Office Word's "Email as Attachment" works perfect.

Both our application and Outlook is running as normal user, so it may not be priviledge issues described in this thread.

In my observation, Office Word also using simple MAPI to send the mail, right?

So I want to know how Office Word is doing this.

Any help will be appreciated.



June 17th, 2015 10:46pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics