BUG: MapiSendMail Incorrectly Returns Success Using Outlook Form

Last reviewed: September 24, 1997
Article ID: Q174215
The information in this article applies to:
  • Simple Messaging Application Programming Interface (MAPI)

SYMPTOMS

Using Simple MAPI under Visual C++, the MapiSendMail function should return MAPI_E_USER_ABORT if the user aborts the Send Mail dialog box by closing or pressing Escape. However, using the standard Outlook Send Mail form, MapiSendMail always returns SUCCESS_SUCCESS.

RESOLUTION

If you need to get the correct return value from MapiSendMail, you must use the "simplified form" for sending messages. You can do this by setting the "Use simplified form to send from other applications" option in the Send tab of the Exchange options dialog box.

You may also set the following registry key value to "1":

  • For Windows NT

          HKEY_CURRENT_USER\Software\Microsoft\Windows NT\
    
                  Current Version\Windows Messaging Subsystem\
                  Simple MAPI-CMC\SENDNOTEUI
    
    
  • For Windows 95

          HKEY_CURRENT_USER\Software\Microsoft\Windows Messaging Subsystem\
    
                  Simple MAPI-CMC\SENDNOTEUI
    
    

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

Keywords          : SMapiCMC
Version           : WINDOWS:0.0
Platform          : WINDOWS
Issue type        : kbbug


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.