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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

ItemSend Event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 11th 08, 06:52 PM posted to microsoft.public.outlook.program_vba
Catalin
external usenet poster
 
Posts: 15
Default ItemSend Event

Dear Friends,

I have the following question:

I use OL2003 and have 3 email accounts. What I need to do is to move the
sent email to a subfolde based on the account I am using. Is this possible
with ItemSend Event or there is any other solution? How can I determine the
email account used when sending emails?

Pls help.

Thanks in advance.
Catalin

Ads
  #2  
Old January 11th 08, 07:52 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default ItemSend Event

From what I remember you can't really determine the sending account during
ItemSend - that information is stamped into the e-mail after any trappable
events have been fired. Regardless, the best approach is to monitor the
ItemAdd event for the Sent Items folder to hook into that message when it is
first saved there after it is sent - then you can look at the
SenderEmailAddress property for that message to determine which account it is
associated with and move it to the desired folder.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Catalin" wrote:

Dear Friends,

I have the following question:

I use OL2003 and have 3 email accounts. What I need to do is to move the
sent email to a subfolde based on the account I am using. Is this possible
with ItemSend Event or there is any other solution? How can I determine the
email account used when sending emails?

Pls help.

Thanks in advance.
Catalin

  #3  
Old January 12th 08, 08:04 AM posted to microsoft.public.outlook.program_vba
Catalin
external usenet poster
 
Posts: 15
Default ItemSend Event

Thanks a lot for your answer.
But pls tell me how do I capture the ItemAdd event since is nothing like
this in ThisOutlookSession? Can u help me?

Regards,
Catalin

"Eric Legault [MVP - Outlook]" wrote:

From what I remember you can't really determine the sending account during
ItemSend - that information is stamped into the e-mail after any trappable
events have been fired. Regardless, the best approach is to monitor the
ItemAdd event for the Sent Items folder to hook into that message when it is
first saved there after it is sent - then you can look at the
SenderEmailAddress property for that message to determine which account it is
associated with and move it to the desired folder.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Catalin" wrote:

Dear Friends,

I have the following question:

I use OL2003 and have 3 email accounts. What I need to do is to move the
sent email to a subfolde based on the account I am using. Is this possible
with ItemSend Event or there is any other solution? How can I determine the
email account used when sending emails?

Pls help.

Thanks in advance.
Catalin

  #4  
Old January 14th 08, 04:40 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default ItemSend Event

See http://www.outlook-code.com/article.aspx?id=62 for an example.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Catalin" wrote in message ...
Thanks a lot for your answer.
But pls tell me how do I capture the ItemAdd event since is nothing like
this in ThisOutlookSession? Can u help me?

Regards,
Catalin

"Eric Legault [MVP - Outlook]" wrote:

From what I remember you can't really determine the sending account during
ItemSend - that information is stamped into the e-mail after any trappable
events have been fired. Regardless, the best approach is to monitor the
ItemAdd event for the Sent Items folder to hook into that message when it is
first saved there after it is sent - then you can look at the
SenderEmailAddress property for that message to determine which account it is
associated with and move it to the desired folder.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Catalin" wrote:

Dear Friends,

I have the following question:

I use OL2003 and have 3 email accounts. What I need to do is to move the
sent email to a subfolde based on the account I am using. Is this possible
with ItemSend Event or there is any other solution? How can I determine the
email account used when sending emails?

Pls help.

Thanks in advance.
Catalin

  #5  
Old January 17th 08, 07:17 PM posted to microsoft.public.outlook.program_vba
Catalin
external usenet poster
 
Posts: 15
Default ItemSend Event

Thank you very much
It was very helpful.

"Sue Mosher [MVP-Outlook]" wrote:

See http://www.outlook-code.com/article.aspx?id=62 for an example.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Catalin" wrote in message ...
Thanks a lot for your answer.
But pls tell me how do I capture the ItemAdd event since is nothing like
this in ThisOutlookSession? Can u help me?

Regards,
Catalin

"Eric Legault [MVP - Outlook]" wrote:

From what I remember you can't really determine the sending account during
ItemSend - that information is stamped into the e-mail after any trappable
events have been fired. Regardless, the best approach is to monitor the
ItemAdd event for the Sent Items folder to hook into that message when it is
first saved there after it is sent - then you can look at the
SenderEmailAddress property for that message to determine which account it is
associated with and move it to the desired folder.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Catalin" wrote:

Dear Friends,

I have the following question:

I use OL2003 and have 3 email accounts. What I need to do is to move the
sent email to a subfolde based on the account I am using. Is this possible
with ItemSend Event or there is any other solution? How can I determine the
email account used when sending emails?

Pls help.

Thanks in advance.
Catalin


 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with ItemSend aj Add-ins for Outlook 0 September 7th 07 07:47 PM
Cancelling and closing a mailitem in itemsend event bstrum Add-ins for Outlook 1 June 19th 07 05:53 AM
Adding a recipient from the "ItemSend" event J Outlook and VBA 1 February 27th 07 06:23 PM
Write RTF-Body on ItemSend event Thomas Add-ins for Outlook 2 February 12th 07 11:22 AM
ItemSend event differences betweek W2K & WXP Lionel H Outlook and VBA 4 October 20th 06 03:16 PM


All times are GMT +1. The time now is 12:20 PM.


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.