sendmail
Apache サーバー (Ubuntu) にインストールしました
PHPの使用中にメールが送信されないことを除いて、すべてが機能しているようですmail();
Apache エラーログに次のようなエラーが表示されます。
/usr/sbin/sendmail: 受信者が見つかりません
これは私が関数を使用している方法です:
$user_email = "myemail@gmail.com";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'To: ' . $user_email . "\r\n";
$headers .= 'From: Mydomain <do-not-reply@mydomain.com>' . "\r\n";
mail($user_email,"subject","message",$headers);