I have installed sendmail
on my Apache server (Ubuntu)
Everything seems to work find except an email is not beeing sent while using php mail();
I get an error on the Apache errorlog saying:
/usr/sbin/sendmail: no recipients found
This is the way I'm using the function:
$user_email = "myemail@gmail.com";
$headers = 'MIME-Version: 1.0' . "
";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "
";
$headers .= 'To: ' . $user_email . "
";
$headers .= 'From: Mydomain <do-not-reply@mydomain.com>' . "
";
mail($user_email,"subject","message",$headers);