【问题标题】:Sending email with silent Subject发送带有静音主题的电子邮件
【发布时间】:2014-12-18 04:47:45
【问题描述】:

有没有办法在邮件中发送无法被发件人修改的静默主题?

<div class="col-md-11">
 <a href="mailto:support@support.com?subject=Subject 
          For Email&body=This email is from person or unknown user">E-mail
 </a>
 <p>
    <small>If you have questions, please send requests 
           via e-mail to support team: 
    <a href="mailto:support@support.com?subject=Subject For 
       Email&body=This email is from person or unknown user">
       support@support.com
    </a>
    </small>
 </p>
</div>

href="mailto:support@support.com?subject=Subject For 
      Email&body=This email is from person or unknown user"

这会给我邮件到电子邮件字段和主题字段中的主题,甚至正文中的文本,但我想知道电子​​邮件中的静默主题。

【问题讨论】:

  • 您必须使用 TextArea 来接收电子邮件文本并从服务器端发送

标签: c# html asp.net-mvc-4


【解决方案1】:

RFC 2822 中描述了电子邮件结构。

电子邮件字段中没有“静默主题”之类的东西,因此您只能使用通常的主题字段。

mailto URI 方案强制您的链接在用户计算机上的默认邮件客户端中作为电子邮件打开。并且没有“通用”的方法来阻止任何邮件客户端更改该字段。

所以你不能按照你描述的方式发送邮件。

【讨论】:

  • 也许我可以事先知道发件人并将其与收到的电子邮件进行比较?窃取或添加一些包裹给发件人?
猜你喜欢
  • 2020-11-06
  • 1970-01-01
  • 2015-04-29
  • 2017-12-26
  • 2018-12-08
  • 1970-01-01
  • 2018-06-13
  • 2012-12-12
  • 2021-05-11
相关资源
最近更新 更多