MailKit: how to get an email address if it is an alias
I am sending an email to alias@company.com , which is the alias for the real mailbox. Then I connect to a real mailbox (say realmailbox@company.com ) using MailKit and receive messages. When I check the To address, all I see is realmailbox@company.com. How can I see the original address of the alias that the email was sent to?
For example:
var fullMessage = imapClient.Inbox.GetMessage(uid);
var recipients = fullMessage.To;
recipients only display realmailbox@company.com , not alias@company.com.
+3
source to share