Re: Capture sent e-mails using an Outlook Addin/Extension
- From: "Dave Smith" <Dave@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 27 May 2006 22:24:12 -0400
With help from Dmitry and others in this group I am doing something very
similar using the OnWriteComplete handler of an ECE.You should be aware that
this method is called for reasons other than the submitting of a message to
be sent. For example, it gets called when a copy of a message being composed
is saved to the drafts folder.
I set a named property into the message during the OnSubmit handler. Then I
only save a copy of a message in OnWriteComplete if it has this named
property.
I hope this helps,
Dave Smith
"Dmitry Streblechenko" <dmitry@xxxxxxxxxxx> wrote in message
news:%23O1fO0FgGHA.4776@xxxxxxxxxxxxxxxxxxxxxxx
What eaxctly do you mean by "not all metadata is defined at the point of
the event"?
In you are using ECE, wait for the OnWriteComplete event fire.
If you are using OOM, ItemSend event will have all the properties
populated if you are using OOM, in case of MAPI call MailItem.Save first.
If you mean the sender related props are missing, thee only workaround is
to either wait until the mesage gets to the Sent Items folder or figure
out the sender related props using IMAPISession::QueryIdentity and
IOlkAccoutnManager.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Brian Ross" <brian.ross.x@xxxxxxxxxx> wrote in message
news:u4t9HnFgGHA.3900@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
What is the recommended way to capture all e-mails sent from Outlook
using an Outlook plugin (COM Addin/Exchange Extension)?
The goal is to capture the e-mail and save it to disk. After looking at
the 'ItemSend' (COM Addin) and 'OnSubmit' (Exchange Extension) it seems
like not all metadata is defined at the point of the event. Is there a
better way?
Thanks
Brian
.
- References:
- Capture sent e-mails using an Outlook Addin/Extension
- From: Brian Ross
- Re: Capture sent e-mails using an Outlook Addin/Extension
- From: Dmitry Streblechenko
- Capture sent e-mails using an Outlook Addin/Extension
- Prev by Date: Re: What is "DateTime"?
- Next by Date: Handling e-mails from ASP
- Previous by thread: Re: Capture sent e-mails using an Outlook Addin/Extension
- Next by thread: Weird behaviour of Send method
- Index(es):
Relevant Pages
|