how to get from address in outlook when multiple mailboxes are configured using add-in express

198 Views Asked by At

is there way to get 'from' address(sender) form outlook when multiple mailboxes are configured using add-in express.

i want to capture sender address before sending the mail inside item_send event . following property always give default email address not the selected one.

mail.SendUsingAccount.SmtpAddress

enter image description here

I am using outlook 2016 64 bit version

1

There are 1 best solutions below

0
On

Sure, use the Namespace.Accounts collection and read theAccount.SmtpAddress property.