Why is SendItem event not invoked?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created some Outlook VBA code which uses the ItemSend event and is
invoked when I send an e-mail. It seems to work quite well.

With one exception -- when an e-mail message is created from outside of
Outlook.

For instance, from within Windows Explorer. I right-click on an item which
brings up a menu. I click on "Send to". I then click on "Mail Recipient".
This causes the creation of an e-mail message with has the item as an
attachment. When I send this e-mail, the ItemSend event procedure is not
invoked.

Why? What can I do to remedy this?

Larry
 
This is a known problem - Inspectors.NewInspector also never fires in this
case.
I don't remember exactly why it was done, but this functionality was
disabled on purpose to avoid more serious problems.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
The "send to" methods all use Simple MAPI, so they're actually bypassing Outlook. One solution is to create a shortcut in the Send To folder that invokes outlook with the /a switch to add an attachment and get rid of the original Send To Mail shortcut:

"C:\program files\microsoft office\office\outlook.exe" /a %1

Change the file path, of course, to the one on your machine.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top