如何获取电子邮件发件人地址
我正在用 C# 开发一个电子邮件管理器应用程序(如 Outlook),我想做一个回复功能,但是如何获取发送将要回复的电子邮件的用户的电子邮件地址?谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是您要找的吗?
Is this what you're looking for?
我不知道您如何解析您正在回复的邮件,但您正在查找的信息是电子邮件标头的一部分。通常会有一个 Reply-to 标头,其中包含您应将回复发送到的电子邮件地址。
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.