Why is SendItem event not invoked?

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
 
D

Dmitry Streblechenko

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
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top