Why are the letters not reaching Gmail?

Using the mail() function to send mails from the site. Yandex comes normally, but in Google first got into spam, now never comes. What to do?
April 4th 20 at 00:52
5 answers
April 4th 20 at 00:54
April 4th 20 at 00:56
Show normal headers. Form normal, meaningful letter it may be just normal text with meaningful information. Specify the correct sender. As soon as you start to wriggle, you'll go to spam, and then into a black hole. Instructions and how beautiful it is to form, with a detailed description and examples fully.
For example php mail prevent spam
April 4th 20 at 00:58
For a start check the RDNS/DKIM/SPF and all that. Most of the postal service very bad attitude to the letter with a confused host.
April 4th 20 at 01:00
now never comes. What to do?

To begin to examine the headers sent letters.
View don't come if you "clubbing" from Google.

Then examine the recommendations of Google for webmasters on this subject: https://support.google.com/mail/answer/81126?hl=en...

Actually, Google is quite strict, for example, if you Inbox the host will receive a letter, though, with Hotmail, which automatically onforwarded to your mailbox on Gimel, it also may simply not appear in the latter.

At SRS there would be something like from=<SRS0=aBCDef=UG=hotmail.com=..., but Google will focus on DMARC and wrap the letter with the phrase "... due to domain''s DMARC policy".

Read more on this account, look here: https://support.google.com/mail/answer/2451690
April 4th 20 at 01:02
Here is an example.
https://stackoverflow.com/questions/712392/send-em...

Additionally, see where the bug might have to specify in the settings of Google "to Receive mail from the unsafe applications"
In General try and write logs of the error.

Find more questions by tags PHP