Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# でメール マネージャー アプリケーション (Outlook など) を開発していて、返信機能を実行したいのですが、返信されるメールを送信したユーザーのメール アドレスを取得するにはどうすればよいですか? ありがとう。
これはあなたが探しているものですか?
System.Web.Mail.MailMessage receiveMessage = GetMail(); 文字列replyTo=receiveMessage.From;
返信するメッセージをどのように解析しているのかわかりませんが、探している情報は電子メールヘッダーの一部です。通常、返信先ヘッダーがあり、返信先の電子メールアドレスが記載されています。