How to avoid my mails sent from PHP mail() being marked as spam?

前端 未结 2 1168
醉酒成梦
醉酒成梦 2021-01-05 12:06

I\'m using the following to send registration e-mails:

$subject = \'subject is here\';
$message_raw = \'e-mail text\';

$message = base64_encode($message_raw         


        
2条回答
  •  孤独总比滥情好
    2021-01-05 12:54

    you may need a reverse dns record for your server.

    many mail servers considers that mails sent from a host are spam if the hostname cannot be looked up. that is nslookup papa.sk should return an ip address, and nslookup should return papa.sk.

提交回复
热议问题