C# How to get the send of behalf email address in outlook add-in
I'm trying to get the sender email address from email that is send using another email address. The sender as shows in outlook is ditribution-lists@domain.com on behalf of User Name [user.name@domain.com]. The MAPI object has a method SentOnBehalfOfName that returns "User Name" but not the email address. Does anyone know how to receive user.name@domain.com field? using System; using System.Runtime.InteropServices; using System.Diagnostics; using System.Reflection; namespace Helpers { internal class EmailHelper { public static string GetSenderEmailAddress(Microsoft.Office.Interop.Outlook