【发布时间】:2014-03-25 07:33:30
【问题描述】:
我有以下代码从“To”获取值,但输出是 Array
$header=imap_headerinfo($inbox,'18');
echo $header->to;
第二 我使用 imap_search 函数搜索电子邮件并在电子邮件正文中找到所需的字符串。现在一些电子邮件客户端确实使用不同的正文,所以让我们说雅虎。 Outlook 或任何其他客户端中的实际电子邮件如下所示:
The mail system
<dkkfdjhfhjd@gmail.com>: host gmail-smtp-in.l.google.com[173.194.77.26] said:
550-5.1.1 The email account that you tried to reach does not exist. Please
try 550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1
http://support.google.com/mail/bin/answer.py?answer=6596
c10si1356788oed.181 - gsmtp (in reply to RCPT TO command)
但是当我尝试通过以下方式打印它时:
$message = imap_fetchbody($inbox,'18',1);
echo $message;
打印如下:
The mail system : host gmail-smtp-in.l.google.com[173.194.77.26] said: 550-5.1.1
The email account that you tried to reach does not exist. Please try 550-5.1.1
double-checking the recipient's email address for typos or 550-5.1.1 unnecessary
spaces. Learn more at 550 5.1.1 http://support.google.com/mail/bin/answer.py?
answer=6596c10si1356788oed.181 - gsmtp (in reply to RCPT TO command)
我也无法从中获取电子邮件地址。 谁能告诉体面的方法来获取交付失败的用户的电子邮件地址?从标题或其他什么?我非常需要它,有人可以帮忙吗?
【问题讨论】: