ItemSend Event

  • Thread starter Thread starter Catalin
  • Start date Start date
C

Catalin

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
 
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.
 
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
 
Back
Top