How to format an email that Hotmail / Outlook is happy with?

前端 未结 4 1438
星月不相逢
星月不相逢 2021-01-13 00:58
$body = \'This is a test\';
    $subject = \'Confirmation\';
$headers = \'From: Testing Site\' . \"\\r\\n\";
$headers .= \'Reply-To: admin@myserver.com\' . \"\\r\\n\         


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 01:33

    Using the PHPMailer library to send mail instead of the mail() function has finally sorted this problem and is the working solution for me. Answer by Jasper N. Brouwer probably more correctly answers the question though I've not had a chance to try it.

提交回复
热议问题