PHP 获得退回电子邮件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP 获得退回电子邮件相关的知识,希望对你有一定的参考价值。

/*
php mail() doesnt know about bounced emails simply because it doesnt
>reach it. there's no callback that allows you to register for bounced
>emails. the email is received by your smtp server and is redirected
>to the appropriate account (depending on the configuration)

you can get bounces and replies by adding some headers:
*/


$mail_header .= "Return-Receipt-To:\"RETURNRECEIPTyourdomain.org\" \n";
$mail_header .= "Return-Path: \"BOUNCEyourdomain.org\" \n";

/*
and then off course read out these addresses! 
*/

以上是关于PHP 获得退回电子邮件的主要内容,如果未能解决你的问题,请参考以下文章