简体   繁体   English

c#MailKit - 阅读收据

[英]c# MailKit - Read receipt

Does anybody know if MailKit supports a read receipt (reply message on read)? 有人知道MailKit是否支持读取收据(读取时回复消息)? I have not found anything on the web or on Stackoverflow. 我没有在网上或Stackoverflow上找到任何东西。

Read receipts (ie automated messages being sent when a user opens a message) is not something that MailKit can do automatically, it must be implemented by the software using MailKit or by the mail server. 读取收据(即用户打开邮件时发送的自动邮件)不是MailKit可以自动执行的操作,必须由软件使用 MailKit或邮件服务器实现。

This feature is something that generally only groupware suites like Microsoft Exchange, Lotus Notes, and Novell Groupwise implement. 此功能通常只有Microsoft Exchange,Lotus Notes和Novell Groupwise等组件套件才能实现。

It is a feature that can be implemented by the mail server or by the mail client, but it is not a feature of any of the mail protocols and so MailKit does not implement it. 它是一种可以由邮件服务器或邮件客户端实现的功能,但它不是任何邮件协议的功能,因此MailKit不实现它。

If you would like to support sending read receipts, you will need to automatically create a MimeMessage with a MessageDispositionNotification body part and send it when the user opens/reads a message in your client program. 如果您希望支持发送已读回执,则需要自动创建带有MessageDispositionNotification正文部分的MimeMessage ,并在用户在客户端程序中打开/读取消息时发送它。

To request a read receipt for a MimeMessage, you will need to set the Disposition-Notification-To header field like this: 要请求MimeMessage的已读回执,您需要设置Disposition-Notification-To标头字段,如下所示:

message.Headers[HeaderId.DispositionNotificationTo] = "me@example.com";

If the receiving user agent supports read receipts and it is configured to send them, then you will theoretically receive one when the user reads the message. 如果接收用户代理支持读取回执并且配置为发送它们,那么理论上当用户阅读消息时您将收到一个。

For more information about read receipts, see rfc3798 . 有关阅读回执的更多信息,请参阅rfc3798

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM