Microsoft KB Archive/916656

= A COM add-in or VBA script does not receive Office Outlook events when you click &quot;Mail Recipient&quot; on the &quot;Send To&quot; shortcut menu in Windows =

Article ID: 916656

Article Last Modified on 6/13/2006

-

APPLIES TO


 * Microsoft Outlook 2000 Standard Edition
 * Microsoft Outlook 2002 Standard Edition
 * Microsoft Office Outlook 2003

-





SYMPTOMS
Consider the following scenario. You create a Microsoft Component Object Model (COM) add-in or a Microsoft Visual Basic for Applications (VBA) script that receives Microsoft Office Outlook events. You right-click a file in Microsoft Windows, click Send To, and then click Mail Recipient. In this scenario, when the e-mail message is created, the COM add-in or VBA script does not receive Outlook events.



CAUSE
This issue occurs because the Mail Recipient menu option starts a component that uses Simple MAPI. Simple MAPI is designed to work with many e-mail clients. Therefore, it does not send Outlook-specific events.



WORKAROUND
To work around this issue, use one of the following methods. Use the method that fits your situation the best.

Method 1: Remove the Mail Recipient option from the Send To shortcut menu
You can remove the Mail Recipient option from the Send To shortcut menu. To do this, follow these steps:  Start Windows Explorer. Locate the following folder:

\Documents and Settings\ \SendTo

 Right-click the Mail Recipient.MAPIMAIL file, and then click Delete.

Method 2: Create a custom DLL that handles the Mail Recipient menu option
You can create a custom DLL that handles the Mail Recipient menu option.

Note By default, the Sendmail.dll file handles the Mail Recipient menu option.



STATUS
This behavior is by design.

