I am attempting to use PHP mail() to send an email with the From address changed. My example is below...
<?php
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: Me <me@mydomain.com>' . "\r\n";
$message = 'Test Message';
mail("test@test.com","My subject",$message, $headers);
?>
No email is ever sent, if I remove the From address then the email gets sent fine.
Any ideas how to fix?