有些应用要求系统生成的电子邮件来为别人送,或者说更准确,他们呼吁外观的从别人发送。
构造电子邮件标头以实现此目的的正确/可接受方法是什么?
为了解决这个问题,我在下面的标题中包含了我收到的两封电子邮件:
电子邮件1:
在这个例子中,[email protected]是实际发送者的电子邮件地址,并[email protected]是在Gmail构造和用于发送下面的电子邮件的替代电子邮件地址。
Return-Path: <[email protected]>
X-Orig-To: [email protected]
Received: from [209.85.216.45] ([209.85.216.45:57830] helo=mail-qa0-f45.google.com) by smtp13.gate.ord1c.rsapps.net (envelope-from <[email protected]>)
Received: by mail-qa0-f45.google.com with SMTP id cm18so1356657qab.18 for <[email protected]>; Wed, 23 Apr 2014 13:32:45 -0700 (PDT)
Sender: <[email protected]>
Subject: Test Message
From: Real User's Name <[email protected]>
根据接收用户的电子邮件客户端,电子邮件可能显示如下: [email protected]; on behalf of; Real User's Name <[email protected]>
电子邮件2:
在此示例中,[email protected]是发送该假电子邮件的人的电子邮件地址。
Return-Path: <[email protected]>
X-Orig-To: [email protected]
Received: from [190.114.206.6] ([190.114.206.6:49144] helo=mail) by smtp55.gate.dfw1a.rsapps.net (envelope-from <[email protected]>)
Subject: Test message 2
From: Real User's Name <[email protected]>
这样的电子邮件通常会显示在电子邮件客户端中。
Gmail示例是做标头的正确方法吗?
RFC 5322的3.6.2节说明了应如何填充发件人头。当发件人想假冒其他人(例如,代表其老板发送邮件的助手)时,他们要假冒的地址会出现在From
头中,而他们的真实地址在Sender
标题中。这假定邮件提交代理可以确定发件人的真实地址,例如,它需要用户身份验证。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句