最近、Plesk Parallel Linux Server にアップグレードしましたが、PHP 設定がヘッダーを無視しているように見えます! メールは正常に受信されていますが、HTML タグが表示されます。
phpInfo()
ファイルはこちらからご覧いただけます: https://www.pressgofer.com/phpInfo.php
PHP自体は問題ないはずですが、とにかくここに含めました。
PHPメールコード
$email = "example@example.com";
$message = "<h1 style='font-family:Helvetica,Arial;font-size:17px'>Your account has a password reset request</h1>";
$headers = "From: noreply@pressgofer.com \r\n";
$headers .= "Reply-To: noreply@pressgofer.com \r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
mail($email, "Reset password notification", $message, $headers);
どうもありがとう、ニック