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


1 answer


It seems to me that your SMTP server does string substitution on the alias before passing it on to the recipient's mailbox, making it impossible to get the information you are looking for.



0


source







All Articles