T
T
Tony Green2016-02-07 18:59:15
PHP
Tony Green, 2016-02-07 18:59:15

How to send mail via php mail() from Ubuntu VDS with Yandex.Mail for Domain connected?

There is a site which is located on a web hosting reg.ru. The domain has been delegated to Yandex and Mail for Domain is connected. The site has a form, the data from which is sent through the PHP mail () function. Everything works well, letters do not get into spam, mail accounts are not created on the hosting itself, only on Y.PDD and data from the form is also sent from mail with Y.PDD.
There is also a site located on VDS from IHOR.ru with Apache2 + PHP + MySQL raised. The domain is also delegated to Yandex and Mail for Domain is connected. In the Apache settings, the [email protected]<> soap is specified, the mail for which was created on Ya.PDD, but the data from the form is not sent via mail ().
I tried to raise postfix, then the data was sent, but from the address [email protected]<> and got into spam. And I want to make sure that the data is sent from [email protected]<>, which was created on Ya.PDD.
How to do it? It is through traffic rules, as on the first site on reg.ru
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Zhivotnev, 2016-02-07
@inkvizitor68sl

https://debian.pro/1128 is better, given that you couldn't change the outbox in mail() yourself.

E
Evgeny Tulupov, 2016-02-08
@etulupov

I would suggest this one: https://github.com/PHPMailer/PHPMailer
Same as mail(), but you can login.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question