php mail return false when i run mail function
here is my code
$to = '[email protected]';
$subject = 'Login';
$message = 'Thanks for Login ! Your account has been logged on website.';
$headers = 'From:[email protected]' . "\r\n";
var_dump(mail($to, $subject, $message, $headers));
when i opened mail log there is no error found and when i test to send mail over ubuntu terminal using this command
echo "Test mail from postfix" | mail -s "Test Postfix" [email protected]
it sends to me mail correctly
also i configured php.ini
sendmail_path = /usr/sbin/sendmail -t -i -f [email protected]