PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins AfterSendEvent...

Reply

AfterSendEvent...

 
Thread Tools Rate Thread
Old 15-07-2008, 10:13 AM   #1
Koen Verwimp
Guest
 
Posts: n/a
Default AfterSendEvent...


Hello,

In the outlook model we can set an event handler on "Application.ItemSend",
but this event is a BeforeSend event. I need an AfterSend event ... because I
need the entryID of the mail after sending.

Anyone an idea for solving this?
Can Redemption help?

greetz,
Koen
  Reply With Quote
Old 15-07-2008, 01:15 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default RE: AfterSendEvent...

You'd need to subscribe to the Items.ItemAdd event for the Sent Items folder.
See http://www.outlookcode.com/codedetail.aspx?id=456 for a VBA code sample.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Koen Verwimp" wrote:

> Hello,
>
> In the outlook model we can set an event handler on "Application.ItemSend",
> but this event is a BeforeSend event. I need an AfterSend event ... because I
> need the entryID of the mail after sending.
>
> Anyone an idea for solving this?
> Can Redemption help?
>
> greetz,
> Koen

  Reply With Quote
Old 15-07-2008, 03:41 PM   #3
Koen Verwimp
Guest
 
Posts: n/a
Default RE: AfterSendEvent...

Sue,

Problem is that you can choose another location for saving the sent item
while creating a new mail.
These mails will not be catched by the eventhandler on the default sent items.

grtz,
Koen



"Sue Mosher [MVP-Outlook]" wrote:

> You'd need to subscribe to the Items.ItemAdd event for the Sent Items folder.
> See http://www.outlookcode.com/codedetail.aspx?id=456 for a VBA code sample.
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook Programming: Jumpstart
> for Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
>
> "Koen Verwimp" wrote:
>
> > Hello,
> >
> > In the outlook model we can set an event handler on "Application.ItemSend",
> > but this event is a BeforeSend event. I need an AfterSend event ... because I
> > need the entryID of the mail after sending.
> >
> > Anyone an idea for solving this?
> > Can Redemption help?
> >
> > greetz,
> > Koen

  Reply With Quote
Old 15-07-2008, 03:52 PM   #4
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default RE: AfterSendEvent...

Your add-in could handle that possibility by looking at the value of the
SaveSentMessageFolder property and adding ItemAdd event handlers for other
folders as needed. A wrapper class would be a good approach for that, just as
you'd use a wrapper class to handle events from multiple open Explorer or
Inspector windows.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Koen Verwimp" wrote:

> Sue,
>
> Problem is that you can choose another location for saving the sent item
> while creating a new mail.
> These mails will not be catched by the eventhandler on the default sent items.
>
> grtz,
> Koen
>
>
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
> > You'd need to subscribe to the Items.ItemAdd event for the Sent Items folder.
> > See http://www.outlookcode.com/codedetail.aspx?id=456 for a VBA code sample.
> >
> > "Koen Verwimp" wrote:
> >
> > > Hello,
> > >
> > > In the outlook model we can set an event handler on "Application.ItemSend",
> > > but this event is a BeforeSend event. I need an AfterSend event ... because I
> > > need the entryID of the mail after sending.
> > >
> > > Anyone an idea for solving this?
> > > Can Redemption help?
> > >
> > > greetz,
> > > Koen

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off