简体   繁体   English

阻止用户回复消息

[英]Prevent a user from replying to a message

Is there any mechanism in which you can prevent a user from replying to an email message?是否有任何机制可以阻止用户回复电子邮件? Here's the use case:这是用例:

  1. An automated system (C#.net) sends emails to a user.自动化系统 (C#.net) 向用户发送电子邮件。 The action of the task is included in the email message (eg RSVP link for "yes" or "no")任务的操作包含在电子邮件中(例如“是”或“否”的 RSVP 链接)
  2. Instead of using the buttons/actions in the email, the user replies to the email.用户不使用电子邮件中的按钮/操作,而是回复电子邮件。
  3. The email originally sent specifically says that the mailbox in use is unmonitored.最初发送的电子邮件专门说使用中的邮箱不受监控。 (in bright red box!!!) (在鲜红色的盒子里!!!)
  4. The user doesn't actually read the email, and gets pissed off when nobody replies or his RSVP is "lost"用户实际上并没有阅读电子邮件,并且在没有人回复或他的回复“丢失”时生气

Clearly a user issue.明显是用户问题。 I'm thinking the best recourse might be an automated reply saying the mailbox is unmonitored if a user replies to the e-mail.我认为最好的办法可能是自动回复说如果用户回复电子邮件,邮箱将不受监控。

Any SMTP conditions/flag which can prevent a user from replying in the first place?任何可以阻止用户首先回复的 SMTP 条件/标志?

I don't believe there is any setting that you can include in the original email that would stop someone from replying to an email.我不相信您可以在原始电子邮件中包含任何可以阻止某人回复电子邮件的设置。 If the recipient really wants to reply, they can literally copy-paste the sender's email address into a new email and reply to it that way.如果收件人真的想回复,他们可以直接将发件人的电子邮件地址复制粘贴到新电子邮件中,然后以这种方式回复。

Just wanted to point out that the following hack is not elegant and would result in a bad customer experience.只是想指出以下 hack 并不优雅,会导致糟糕的客户体验。 This is the only way I could think of achieving this.这是我能想到的实现这一目标的唯一方法。

One hack that comes to my mind is that you can try to set MailMessage.ReplyToList property to an invalid email address like - abc@g@g.com.我想到的一个技巧是,您可以尝试将 MailMessage.ReplyToList 属性设置为无效的电子邮件地址,例如 - abc@g@g.com。 In theory, this will force the customer's email client to reply to the invalid email address instead of the original sender.理论上,这将强制客户的电子邮件客户端回复无效的电子邮件地址,而不是原始发件人。 We can hope that the customer's email client validates that before sending the reply.我们可以希望客户的电子邮件客户端在发送回复之前验证这一点。

I have not tried this myself as I don't have an SMTP server to validate.我自己没有尝试过,因为我没有要验证的 SMTP 服务器。 But if the SMTP server does not validate the ReplyToList value then it should work.但是如果 SMTP 服务器不验证 ReplyToList 值,那么它应该可以工作。

Again this is a super sketchy hack and might not work with all the email clients out there.同样,这是一个超级粗略的黑客,可能不适用于所有电子邮件客户端。

You are better off setting up an auto-reply on the mailbox.您最好在邮箱上设置自动回复。

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

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