A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

AfterSendEvent...



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 15th 08, 11:13 AM posted to microsoft.public.outlook.program_addins
Koen Verwimp
external usenet poster
 
Posts: 26
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
  #2  
Old July 15th 08, 02:15 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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

  #3  
Old July 15th 08, 04:41 PM posted to microsoft.public.outlook.program_addins
Koen Verwimp
external usenet poster
 
Posts: 26
Default 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

  #4  
Old July 15th 08, 04:52 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump


All times are GMT +1. The time now is 07:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.