BUG: MapiSendMail Incorrectly Returns Success Using Outlook Form

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.

Additional query words:

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


Last Reviewed: November 9, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.