Search code examples
c#asp.netgmailpop3email-headers

Get receiver email address using c# pop3


That sounds funny. But in Gmail, we get list of both sent and received emails in pop3. So i need to get email address of sent emails (receiver). hint: for received emails we check email like this message.Headers.From.Address But i need info of sent emails.


Solution

  • I found it

    foreach (OpenPop.Mime.Header.RfcMailAddress objectItem in message.Headers.To)
    { email_to += objectItem.Address.ToString(); }