![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |