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 <[email protected]>' . "\r\n";
$message = 'Test Message';
mail("[email protected]","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?