ItemSend Event

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
 
E

Eric Legault [MVP - Outlook]

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.
 
C

Catalin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top