Circular letter in Word and COM ItemSend event

M

msdn

Hi There,

I am newbie programming COM event in Outlook but we have the following
problem:

- we have a aaa.dll file that is hanging on Outlook's ItemSend event,
and have no problems wenn somebody send an email we capture it, and some
data will be saved in MSSQL
- we have an application that make a connection to Word and via DDE we
add some Items (including email address),
- the user will make a circular letter of this document using this
Items. this circular letter will be sent via Outlook by email the
including email address,
- in this case (circular letter), the ItemSend event won't be fired, the
emails will be placed directly to the Outbox folder (we think that this
can occur the problem) how can we capture this event when the Word
application send an email circular letter?

Thanks
Alex

PS: Sorry for my English
 
K

Ken Slovak - [MVP - Outlook]

You can't. By the time the item has been submitted to the Outbox it's been
submitted to the transport and is not available to most Outlook
manipulations. Word uses a MAPI SendTo that bypasses things like
NewInspector and all other event handling you could do. About all you can do
is try to handle ItemAdd to the Outbox's Items collection and see what you
can do within that event handler.
 

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