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.
Asked
Active
Viewed 632 times
0
-
What are you using to access the email object? – Raj More Nov 04 '09 at 16:39
-
It's a console application, it's only for personal use. – Nathan Campos Nov 04 '09 at 16:42
2 Answers
3
Is this what you're looking for?
System.Web.Mail.MailMessage receivedMessage = GetMail(); string replyTo = receivedMessage.From;

jac
- 9,666
- 2
- 34
- 63
1
I don't know how you are parsing the message you are replying to, but the information you are looking for is part of the e-mail headers. Generally there will be a Reply-to header, with the e-mail address you should sent any replies to.

John
- 691
- 3
- 8