D
D
David Lomidze2016-03-12 21:03:44
PHP
David Lomidze, 2016-03-12 21:03:44

How to send authorized Mail from a PHP site?

Hello,
I have a PHP site hosted by BeGet. From the site I send mail to clients using the mail () functions; and that's where the problem starts.
I connected the domain to Yandex mail for the domain, set up a DKIM record and also changed the SPF to

v=spf1 ip4:91.106.207.31 include:_spf.yandex.net ~all
where "91.106.207.31" is the IP of the server where my site is located. Well, this is for mail with the name of my domain to be sent from my site and from Yandex.
But here's the problem - when I send a message from Yandex (Mail for Domain), then everything is SUPER! And my site is considered to be the sender and there is a DKIM signature. b7020f6af7eb4ccaa1bbe85c9f2ae1cd.png
But when I send from the site (using PHP), then the Beguet server is considered the sender and there is no DKIM signature. 1192d781825b4eeabc4c39e8051cda1d.png
Why is an AUTHORIZED message not sent from the site? Maybe it's because of the server "stack.beget.ru" on which there are 1000 more sites besides mine? If so what to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri, 2016-03-12
@tachila

send via SwiftMailer, he will send via Yandex, he did it a hundred times. you will only need to specify the login / password from the box.

E
Evgeny Bukharev, 2016-03-12
@evgenybuckharev

You need to configure the MTA on the server that is responsible for sending emails (exim, sendmail, postfix), if you google it you can find it. The setting is to attach a DKIM public key to each letter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question