What is that return path for?
Can i Use in this way?
mail($to_address, $subject, $message, $headers, "-f".$return_path );
Where:
$return_path = "C:/www/project/handlebounceemail.php";
Additional:
How to direct the email to a php script? I want to read the email and check for errors.
The
$return_pathrefers to the email address to which undeliverable messages will be sent. This does not refer to a file or URL. So you could use:The next step would be for you to write a script to read the mailbox of the
bouncesuser and do something based on the contents. The exact operations required to do that are dependent on your email system.