Getting SentOnBehalfOfName email address from incoming email

Add-in Express™ Support Service
That's what is more important than anything else

Getting SentOnBehalfOfName email address from incoming email
 
Richard Stevens




Posts: 43
Joined: 2007-01-24
Our Addin primarily looks at incoming emails.

If Jack@MyCompany.com sends an email on behalf of Jill@MyCompany.Com, we are currently looking at SenderEmailAddress. This will show Jack's email, but we really want to get and work with Jill's.

Jill's email must be in there somewhere, because if you press Reply it goes to her.

Is there a property that easily gets this? I know there is a ReplyRecipients property that I could loop through, but that could presumably also include everybody who's been cc'd on the email. There's SentOnBehalfOfName, but that just seems to be a display text, not the actual email address.

Any suggestions welcome

Thank you
Richard
Posted 10 Feb, 2017 10:15:25 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
Hello Richard,

Check MailItem.Sender.Address.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 10 Feb, 2017 11:06:50 Top
Richard Stevens




Posts: 43
Joined: 2007-01-24
Thank you Andrei!

Great service as always.
Posted 10 Feb, 2017 11:18:26 Top