1

我的软件能够通过电子邮件发送 SMS。例如:它会向 12345678@vtext.com 发送一封电子邮件,该电子邮件会自动将其作为 SMS 发送到手机号码 12345678。

这在我使用 PHPMailer 2 时工作正常。但是我的服务器升级了他们的 PHP 版本并且 PHPMailer 2 停止工作。我现在已经升级到 PHPMailer 5。

现在,当发送电子邮件到 SMS 时,收件人会收到 SMS,但手机上显示的发件人设置为 myaccount@myserverdomain.com,而不是像以前那样设置为发件人的电子邮件地址。

有没有人有任何使用电子邮件到 SMS 并让正确的发件人显示在手机中的经验?

我尝试在邮件中添加额外的标题,如“回复”和“发件人”,但无济于事。

编辑:

因为我在澳大利亚,所以我无法运行自己的测试,因为电子邮件到 SMS 在这里不起作用。我在美国有一个客户,我正在与之合作。这些是向我的台式计算机发送测试时的标题。

出于安全原因,我删除了电子邮件地址。它们是 [to_email_address] 和 [from_email_address]。elvanto AT vps.devsyndicate DOT com 是一个不存在的电子邮件地址,但这是我客户手机上的发件人。我已将其更改为 [server_email_address]。

我在标题中发现了一些差异:

版本 2

Received: from localhost.localdomain ([127.0.0.1]:58857 helo=mychurch.elvanto.com) by vps.devsyndicate.com with esmtp (Exim 4.80.1) (envelope-from <[from_email_address]>) id 1Uv6cP-0002oV-Hq for [to_email_address]; Sat, 06 Jul 2013 00:04:13 +1000

版本 5

Received: from elvanto by vps.devsyndicate.com with local (Exim 4.80.1) (envelope-from <[server_email_address]>) id 1Uv6ds-0002rF-Cc for [to_email_address]; Sat, 06 Jul 2013 00:05:44 +1000

版本 2

Return-Path: <[from_email_address]>
Received-Spf: pass (google.com: domain of [from_email_address] designates 64.64.28.228 as permitted sender) client-ip=64.64.28.228;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of [from_email_address] designates 64.64.28.228 as permitted sender) smtp.mail=[from_email_address]

版本 5

Return-Path: <[server_email_address]>
Received-Spf: pass (google.com: best guess record for domain of [server_email_address] designates 64.64.28.228 as permitted sender) client-ip=64.64.28.228;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of [server_email_address] designates 64.64.28.228 as permitted sender) smtp.mail=[server_email_address]

PHPMailer 2 的完整标题:

Delivered-To: [to_email_address]
Received: by 10.223.7.199 with SMTP id e7csp124282fae; Fri, 5 Jul 2013 07:05:18 -0700 (PDT)
Received: from vps.devsyndicate.com (vps.devsyndicate.com. [64.64.28.228]) by mx.google.com with ESMTPS id du5si5410404obb.84.2013.07.05.07.05.17 for <[to_email_address]> (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 05 Jul 2013 07:05:17 -0700 (PDT)
Received: from localhost.localdomain ([127.0.0.1]:58857 helo=mychurch.elvanto.com) by vps.devsyndicate.com with esmtp (Exim 4.80.1) (envelope-from <[from_email_address]>) id 1Uv6cP-0002oV-Hq for [to_email_address]; Sat, 06 Jul 2013 00:04:13 +1000
X-Received: by 10.182.40.132 with SMTP id x4mr11299384obk.61.1373033117984; Fri, 05 Jul 2013 07:05:17 -0700 (PDT)
Return-Path: <[from_email_address]>
Received-Spf: pass (google.com: domain of [from_email_address] designates 64.64.28.228 as permitted sender) client-ip=64.64.28.228;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of [from_email_address] designates 64.64.28.228 as permitted sender) smtp.mail=[from_email_address]
Message-Id: <371a5f588e69a11fbc8439aca9a7e367@mychurch.elvanto.com>
X-Priority: 3
X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version 2.0.4]
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="UTF-8"
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - vps.devsyndicate.com
X-Antiabuse: Original Domain - elvanto.com
X-Antiabuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse: Sender Address Domain - elvanto.com
X-Get-Message-Sender-Via: vps.devsyndicate.com: acl_c_authenticated_local_user: elvanto

PHPMailer 5 的完整标题:

Delivered-To: [to_email_address]
Received: by 10.223.7.199 with SMTP id e7csp124309fae; Fri, 5 Jul 2013 07:05:46 -0700 (PDT)
Received: from vps.devsyndicate.com (vps.devsyndicate.com. [64.64.28.228]) by mx.google.com with ESMTPS id at5si5435775obc.27.2013.07.05.07.05.44 for <[to_email_address]> (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 05 Jul 2013 07:05:45 -0700 (PDT)
Received: from elvanto by vps.devsyndicate.com with local (Exim 4.80.1) (envelope-from <[server_email_address]>) id 1Uv6ds-0002rF-Cc for [to_email_address]; Sat, 06 Jul 2013 00:05:44 +1000
X-Received: by 10.60.52.16 with SMTP id p16mr11209612oeo.29.1373033145381; Fri, 05 Jul 2013 07:05:45 -0700 (PDT)
Return-Path: <[server_email_address]>
Received-Spf: pass (google.com: best guess record for domain of [server_email_address] designates 64.64.28.228 as permitted sender) client-ip=64.64.28.228;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of [server_email_address] designates 64.64.28.228 as permitted sender) smtp.mail=[server_email_address]
Message-Id: <7d22d8f7c388c9e92c938391240a374b@mychurch.elvanto.com>
X-Priority: 3
X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="UTF-8"
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - vps.devsyndicate.com
X-Antiabuse: Original Domain - elvanto.com
X-Antiabuse: Originator/Caller UID/GID - [530 529] / [47 12]
X-Antiabuse: Sender Address Domain - vps.devsyndicate.com
X-Get-Message-Sender-Via: vps.devsyndicate.com: authenticated_id: elvanto/from_h
4

0 回答 0