Search code examples
c#emailemail-clientreply

How Can I Get The Email Sender Address


I'm developing a email manager application(like outlook) in C# and I want to do a reply function, but how I can get the email address of the user that sent the email that will be replyed? Thanks.


Solution

  • Is this what you're looking for?

    System.Web.Mail.MailMessage receivedMessage = GetMail();
    string replyTo = receivedMessage.From;