C++/VB - MAPI_E_FAILURE
Asked By Bill
12-Nov-09 11:37 AM

I have a simple MAPI interface that has been working for years. The user has
the option to open a send e-mail form. The open form works fine for some
installations of Outlook but not others. Here is the C++ code
flags = MAPI_DIALOG ;
error = lpfnSendMail( lplhSession, (ULONG)handle, &messg, flags, 0);
On some machines, notably 2003 server, Outlook fails to open and I get this
error.
MAPI_E_FAILURE
which is not terribly useful.
When that flag is not set it sends the message to Outlook without any
problems.
In my LAN it works on my xp machine with
Micrsoft Office Outlook 2003 ( 11.8217.8221 ) SP3
but it does not work on our 2003 server that has exchange installed to it.
It does have the same version of Outlook
Micrsoft Office Outlook 2003 ( 11.8217.8221 ) SP3.
My customer is using Microsoft Office Outlook 2003 (11.8169.8172) SP3 on a
2003 server via Terminal Services. It is not an exchange machine but there
is a separate Exchange server on his LAN.
Any suggestions would be most appreciated.
Bill
Outlook 2003
(1)
Outlook
(1)
Office
(1)
MapiSendMail
(1)
LpfnSendMail
(1)
ThreadID
(1)
Micrsoft
(1)
Messg
(1)
Guus Creuwels replied to Bill
Hi,
I have exact the same problem. My code is written in Delphi. When sending an
e-mail "silent" it works, but when a dialog needs to be displayed
MapiSendMail returns MAPI_E_FAILURE.
Did you or anybody find a solution for this problem?
Thanks.
Kind regards,
Guus
Guus Creuwels replied to Guus Creuwels
Hello,
Some research learned that this is probably caused by an ORACLE client. See
http://forums.oracle.com/forums/thread.jspa?threadID=606204.
According to ORACLE documentation bug 5513561 (for ORACLE 10) and 8861816
(for ORACLE 11) are causing this problem. See http://support.oracle.com for
more information and a solution/work around.
Kind regards,
Guus Creuwels.
DSS Daniel replied to Guus Creuwels
Hello,
I am with the same problem when I use MAPI to send a email. I also use de
ORACLE client.
I'd like to know if there are good news (any solution) for this problem...
Since now, thanks for the attention.
Daniel
Ha replied to DSS Daniel
There is no solution for this stupid MS bug.
Library not registered outlook 2003 vista C++ / VB Hi, I have a client who has our software on their machine, used to have xp and office 2003 and everything worked fine. Now they upgraded to vista (new laptop) and still use office 2003. When they try and connect to outlook using com it brings up the following error "'src- @ c: \ bcb \ emuvcl \ utilcls.h / 3006 the problem, I created a program that it's sole function is to connect to outlook and display an email. Here is the code for that program: MAPIFolderPtr iFolder; MailItemPtr pMail
library not registered outlook 2003 Vista C++ / VB Hi, I have a client who has our software on their machine, used to have xp and office 2003 and everything worked fine. Now they upgraded to vista (new laptop) and still use office 2003. When they try and connect to outlook using com it brings up the following error "'src- @ c: \ bcb \ emuvcl \ utilcls.h / 3006 the problem, I created a program that it's sole function is to connect to outlook and display an email. Here is the code for that program: MAPIFolderPtr iFolder; MailItemPtr pMail
opening a msg file using ShellExecute C++ / VB Hi, I am trying to open a outlook msg file programmaticatlly as below in my C++ code. ShellExecute(NULL, _T("open"), C: \ Program Files \ Microsoft Office \ \ OFFICE11 \ OUTLOOK.EXE, "C: \ Test.msg", NULL, SW_SHOWNORMAL); It used to work on Outlook 2003 SP2 and before but when I installed SP3 it is giving following error using. = 94 I tried using command line C: \ Program Files \ Microsoft Office \ OFFICE11> outlook.exe / open "C: \ Test.msg" It gave me same error message Anybody has any Idea please Win32 Messaging Discussions Outlook 2003 (1) Outlook 2007 (1) Office (1) X64 (1) ShellExecute (1) CodeProject (1) CodeGuru (1
Extracting Embedded images in Outlook 2007 C++ / VB In Outlook 2003 I had a macro to extract embedded images. This is it Sub SaveAttachment() Dim objCurrentItem As Outlook.MailItem Dim colAttachments As Outlook.Attachments Dim objAttachment As Outlook.Attachment Set objCurrentItem = Application.ActiveInspector.CurrentItem Set colAttachments = objCurrentItem.Attachments Set strFolderpath = CreateObject("WScript.Shell Nothing End Sub I do not know VB. However when I put this macro in Outlook 2007 I get this error message Can someone help me? Regards Doug VB COM Discussions Application.ActiveInspector.CurrentItem (1) Outlook 2007 (1) Outlook 2003 (1) Outlook.MailItem (1) WScript.Shell (1) VBA (1) VB (1