使用MailGun发送邮件时删除“代表”

使用MailGun发送邮件时删除“代表”,第1张

使用MailGun发送邮件时删除“代表”

您还需要

sender
电子邮件标题中的属性设置为最有可能的发件人地址。

使用NodeMailer进行node.js项目时,我遇到了同样的问题。Gmail和Thunderbird可以很好地显示发件人地址,但是Outlook可以将发件人地址显示为

[email protected] on behalf of [email protected]

当我查看完整的电子邮件标题时,发现

sender:
标题中的
[email protected]
from:
[email protected]

我们最初查看spf和dkim记录时认为这是一个问题,但它们很好,并且在电子邮件标头中甚至表示spf和dkim都已通过,因此我注意到发件人标头不同于from和Outlook注意到gmail和thunderbird不在乎的地方。

尝试将

sender
标题设置为该
from
值。

这是部分错误的电子邮件标头之一的示例,该标头已编辑为与上述示例匹配

Received-SPF: pass (google.com....Authentication-Results: mx.google.com;       dkim=pass [email protected];       spf=pass (google.com.....Sender: [email protected]: Persons Name <[email protected]>

使

Sender
等于
Sender: Persons Name <[email protected]>



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5012990.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-14
下一篇 2022-11-14

发表评论

登录后才能评论

评论列表(0条)

保存