There is a form. Letters go to my mailbox at example@gmail.com If the senders indicate mail to mail.ru/yandex.ru then the mail does not arrive, and if you specify something else, for example, user@over.rucom, then the mail comes. And if I send to the mail and indicate the gmail box, then a letter arrives, but with a note that they cannot verify the authenticity of the sender.

Can you do something about this? and why is this happening

  • That's right, you specify a sender who does not match the domain name of the server from which the letter is being sent, so as not to be "reliable." Spam filter takes you for spam (consider that you have been hacked and send mail from you), there is no trust in you, send via smtp, or set up a server so that the sender’s address matches the domain name - Orange_shadow
  • Got it, thanks) - Denis

2 answers 2

Faced a similar problem. Gmail, mail.ru did not accept mail. The solution was to use mailable laravel. Look here https://scotch.io/tutorials/easy-and-fast-emails-with-laravel-5-3-mailables

    Gmail, mail, yandex and others use DKIM, SPF, DMARC sender checks. To send mail from a third-party mail service, you need to use smtp.

    You can send from the local server, and specify the return address - the desired address, but there is a high probability of getting into spam if the local server is not configured properly.