MacでMampを実行していて、mail()を機能させようとしています。
これは私が一緒に仕事をしなければならないものです。
$to = 'mymail@gmail.com';
$subject = 'The subject!';
$message = 'Hi there!';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= "X-Mailer: PHP/".phpversion();
$headers .= 'From: Test <test@test.com>' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Mail it
if(mail($to, $subject, $message, $headers))
{ print 'success!'; }
else
{ print 'fail!'; }
?>
それはただfalseを返し続けます。私が間違っていることについて何か考えはありますか?php / apacheのいくつかの設定を確認する必要がありますか?