简体   繁体   English

将电子邮件发送到PHP-缺少实际的电子邮件地址

[英]Piping email to PHP - Missing actual email address

I have an email address that pipes all messages to a PHP script. 我有一个电子邮件地址,可以将所有消息发送到PHP脚本。 I know how to parse the contents, but I can't find an actual email addresses anywhere in the "to" and "from" headers. 我知道如何解析内容,但是在“ to”和“ from”标头中的任何地方都找不到实际的电子邮件地址。 Is that something that just isn't available? 那是一些不可用的东西吗?

So what I'm receiving looks something like this: 所以我收到的是这样的:

To: Jane Doe, John Doe 
Subject: This is the subject.
Date: Mon, 16 Apr 2012 17:07:25 -0500
From: Test User 
Message-ID: 
X-Priority: 3
X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net)
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I only get the names, but not the email addresses. 我只得到姓名,但没有电子邮件地址。 Does anybody have any thoughts on that? 有人对此有任何想法吗?

Are you sure they're not there? 您确定他们不在吗? Addresses tend to be enclosed in < > brackets, which would vanish if you're viewing this in a browser. 地址通常放在< >括号中,如果您在浏览器中查看地址,该地址将消失。 If you are viewing in a browser, try viewing the page's source, in case those bracketed addresses are being interpreted as html tags. 如果您正在浏览器中查看,请尝试查看页面的源,以防将那些放在方括号中的地址解释为html标签。

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

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