The function of my server and php mail () sends email to the spam folder

Is there a way to install the SMTP service on my Linux server and use php to send email through it?

so that emails do not appear as spam?

perhaps through ssl?

my mail () function is perfect, with perfect headers, but still sent to spam: (

Thank.

+3
source share
3 answers

There are many variables that could potentially be involved here.

Your idea of ​​a perfect headline seems subjective. I would recommend you use something like PHPMailer or Swiftmailer to handle your mailing needs.

, , - , .

+1

:

(, mail() true ):

  • ( "" ) ? , .
  • (, IP- spamhaus.org)? .
  • ? freemailer . , -.
  • , "-f" (), ? (. mail() PHP)
  • , , .
  • "from:" ( " " )? "error-to".
+2

You can double-check your headers, there may be a space in the header or something in the header, you can also check if your server’s ip is blacklisted (http://www.anti-abuse.org/multi-rbl - check /)

0
source

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


All Articles