Why is my email still spammed? Using the mail () function

I am very annoyed by this, because no matter what the spam filters seem to be, they still call the site answering machine as spam. I set all my headers correctly, and this is what I still have!

$headers = "From: Name<name@website.com>\r\n"
        ."Return-Path: Name<name@website.com>\r\n"
        ."Reply-To: Name<name@website.com>\r\n"
        ."Message-ID: <". time() .rand(1,1000). "@".$_SERVER['SERVER_NAME'].">\r\n"
        ."X-Mailer: PHP v".phpversion()."\r\n"
        ."MIME-Version: 1.0\r\n"
        ."Content-Type: text/plain; charset=iso-8859-1\r\n";

        @mail($_POST['email'], "Subject", "Message", $headers);

Please help me with this! :)

This is sent from the servers of my hosting providers.

Will I help add the 5th parameter below?

"- f email@website.com "

+3
source share
5 answers

Did you read this?

So you want to send some email (via code)

In a nutshell:

  • , , , PTR
  • DomainKeys DNS
  • SenderID DNS
+4

, . :

, . /, .

+1

IP-? , - E-Mail, , IP-.

0

mx . , ( : -), , mx -.

, example.com, , -, MX , , IP- 't , .

, http://www.mxtoolbox.com/blacklists.aspx, , .

, . Google .

0

, : , . DNS IP- ; .

:

0

Source: https://habr.com/ru/post/1760385/


All Articles