Hi Swirlee !
I found this topics who seems to be more or less what I asked you when I created a new topic.
Sorry for repetitions !
Anyway let me say what I am looking for:
1) I send an emai from my php program to (for example) firstname.lastname@example.org
2) The next time I run my php program I want to check if my MAILER-DAEMON@myserver.com
has received a bounced email telling that email@example.com
could not be found.
3) Then in my PHP program I will check if the string "firstname.lastname@example.org" is contained within the text of the email received by MAILER-DAEMON@myserver.com
That is all, now first my headers:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "From: ".$FromName." <".$From.">\n";
$headers .= "To: ".$ToName." <".$To.">\n";
$headers .= "Reply-To: ".$FromName." <".$From.">\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "Errors-To: <MAILER-DAEMON@myserver.com>\n";
$headers .= "ReturnPath: "MAILER-DAEMON@myserver.com\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "X-Mailer:/usr/lib/sendmail";
mail("email@example.com", $subject, $message, $headers);
As said above, by the next time I run my PHP, I can test if the string "firstname.lastname@example.org" is contained within the text of the MAILER-DAEMON.
Now, what is the PHP name of such text string ?
I would really appreciate any help, I know you are super expert !