outlook get the sender address in ItemSend event

K

kyosuke

My purpose is to get the sender address in ItemSend event, and i have tried
the following

1. Use the SenderName property of the MailItem. It gives me an empty string,
it may because the mail is not sent yet.
2. Use the Session to get the CurrentUser by the following code

Application.ActiveInspector.Session.CurrentUser.Address

This one is correct only if i am sending the email using the default email
account. However, if i can the account to send the email, this will still
return the default email address.

Any other solution that i can get the selected email address to sent email?
My outlook client have 3 to 4 email account set.
 

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