邮件已读回执的内容可以设置在原邮件中吗?

发布于 2024-09-09 10:44:47 字数 958 浏览 2 评论 0原文

我使用以下代码发送消息并需要已读回执。然后我使用 Outlook 打开此邮件并发回已读回执。已读回执已收到,我的问题是我可以在原始消息中设置已读回执的内容吗?

   MailMessage message = new MailMessage();
   message.From = new MailAddress("[email protected]");
   message.To.Add("[email protected]");
   message.Subject = "test";
   message.Headers.Add("Disposition-Notification-To", "<[email protected]>");

   SmtpClient client = new SmtpClient("smtp.abc.com");
   client.Credentials = new NetworkCredential("[email protected]", "password");
   client.Send(message);

I use the following code to send a message and require a read receipt. Then I use outlook to open this message and send back the read receipt. The read receipt is received, my question is could I set the content of the read receipt in the original message?

   MailMessage message = new MailMessage();
   message.From = new MailAddress("[email protected]");
   message.To.Add("[email protected]");
   message.Subject = "test";
   message.Headers.Add("Disposition-Notification-To", "<[email protected]>");

   SmtpClient client = new SmtpClient("smtp.abc.com");
   client.Credentials = new NetworkCredential("[email protected]", "password");
   client.Send(message);

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒绊 2024-09-16 10:44:47

抱歉,我有坏消息要告诉你。您无法在“发件人端”设置送达回执文本,SMTP 协议中不存在这种可能性。所以它是由接收者生成的。

Sorry, I have bad news for you. You can't set the delivery receipt text on the "sender-side", there is no such possibility in the SMTP protocol. So it's generated by the recipient.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文