php mail() function gets spam email

后端 未结 6 1874
野趣味
野趣味 2020-12-11 19:42

All my emails I am sending in local WAMP or on server, with PHP mail() function, goes to SPAM folder always.

While looking for the issue, I found we\'ve to set heade

6条回答
  •  暖寄归人
    2020-12-11 20:24

    I had the same problem and nothing worked.

    I found out, that no line in the message is allowed to have more than 70 characters. Solution is to add wordwrap after the message.

    $message= wordwrap($message, 70, "\r\n");

提交回复
热议问题