php mail() function gets spam email

后端 未结 6 1870
野趣味
野趣味 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:12

    One thing to do is to make sure that your HTML validates. It turns out that spammers are generally incapable of writing validating HTML and so this a huge tip off.

    Another possibility is that you're on a shared host with another user that's a spammer. In this case, the whole IP range may have been banned.

    Also, using red in your CSS and spammy words (think "free", "viagra", "act now", "sale", etc) are tip offs that some spam filters use.

    The biggest thing that you can do to keep your emails out of spam folders is to only send emails to people that request them. This will keep people from reporting you as spam. If a lot of your emails get reported as spam, then your emails will get put in spam folders.

提交回复
热议问题