phpmailer, php, header, email goes to spam

后端 未结 2 1660
误落风尘
误落风尘 2021-01-05 17:01

I am running into a problem while sending out emails from the system and the problem is that the email gets delivered to the spam box in gmail/yahoo/hotmail. I am posting he

相关标签:
2条回答
  • 2021-01-05 17:42

    This is because when you send a mail with the PHP mail() function, if you are using a shared host, it will appear in your Received header. One way is to change your headers that you are sending. This article and this article give a good way to bypass spam filters by changing headers.

    For best practices, you should investigate using the Sender Policy Framework (SPF) to avoid being regarded as spam.

    You might also be interested in sendmail, which connects to another email account (say, a Gmail account) and sends mail from that account, not from your local server.

    0 讨论(0)
  • 2021-01-05 17:42

    Try a search or check related. Most notably, most all is answered here.

    0 讨论(0)
提交回复
热议问题