Problems occur when you use a custom MAPI transport provider and the IXPLogon::SubmitMessage method returns an error value in Outlook 2002 (916874)



The information in this article applies to:

  • Microsoft Office XP Professional
  • Microsoft Office XP Standard
  • Microsoft Office XP Students and Teachers
  • Microsoft Outlook 2002

SYMPTOMS

Consider the following scenario:
  • You create a custom MAPI transport provider to use with Microsoft Outlook 2002.
  • A network problem occurs when you send a message from Outlook 2002 to the back-end messaging system.
  • When the MAPI spooler calls the IXPLogon::SubmitMessage method in the custom MAPI transport provider, the method returns one of the following HRESULT error values:
    • MAPI_E_NETWORK_ERROR
    • MAPI_E_WAIT
In this scenario, you experience the following symptoms when you send another message from Outlook 2002:
  • The MAPI spooler does not call the IXPLogon::SubmitMessage method for the message.
  • The message is copied to the Sent Items folder instead of to the Outbox folder.
Additionally, you may receive a non-delivery report (NDR) for the message.

Note You experience these symptoms for all subsequent messages that are sent.

CAUSE

This problem occurs because of MAPI spooler component changes that were made in Outlook 2002.

WORKAROUND

To work around this problem, you must redesign the MAPI transport provider. To do this, make the following changes to the MAPI transport provider:
  • In the IXPLogon::SubmitMessage method, set the PR_RESPONSIBILITY property to TRUE for all message recipients. This setting prevents an NDR from being sent.
  • Implement the MAPI transport provider so that it sends the messages manually. To do this, add an internal queuing method to the MAPI transport provider. Configure this internal queuing method to accept messages from the MAPI spooler in all conditions. The MAPI transport provider can then send the messages to the back-end messaging system when this behavior is required.
  • Modify the IXPLogon::SubmitMessage method so that this method will return the HRESULT value S_OK.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about problems that may occur when you use a custom MAPI transport provider with Outlook 2002, click the following article number to view the article in the Microsoft Knowledge Base:

304116 Custom MAPI transport providers may not function in Microsoft Office Outlook 2003 and in Outlook 2002

REFERENCES

For more information about the IXPLogon interface, visit the following Microsoft Developer Network (MSDN) Web site: For more information about the IXPLogon::SubmitMessage method, visit the following Microsoft Developer Network (MSDN) Web site:

Modification Type:MajorLast Reviewed:6/26/2006
Keywords:kbExpertiseAdvanced kbtshoot kbnofix kbBug kbprb KB916874 kbAudDeveloper