Yandex mail sending php mail?

Hello!
There is a thank you page, the user enters her e-mails obtained by the dispatch.

By clicking on the link button (example link - site.ru/thanks/manager=victor&email=test@test.ua&t...
it thus sends a request to the Manager about what was the link and the Manager calls you back, etc.

There is a simple php code

$user_email = isset($_GET['email']) ? $_GET['email'] : ";
$user_telephone = isset($_GET['telephone']) ? $_GET['telephone'] : ";
$manager = isset($_GET['manager']) ? $_GET['manager'] : ";


switch($manager) {
 case 'victor' :
 $sendto = 'mail@mail';
break;
 case 'dobrinina' :
 $sendto = 'mail2@mail';
break;
default:
$sendto='mail3@mail';
}


$recepient = $sendto;
$sitename = "#Repost";

$msg = "";
$msg .= "<p><strong>Email:</strong> $user_email</p>";
$msg .= "<p><strong>Phone:</strong> $user_telephone</p>";

$pagetitle = "Application mailing! \"$sitename\"";

if(isset($_GET['manager'])) {
 mail($recepient, $pagetitle, $msg, "Content-type: text/html; charset=\"utf-8\"\n From: $sendto");
?>


For all popular mail letters come, but yandex mail, as registered Mail for your domain, the emails don't come.

Comes only a letter here
Fwd: Mail delivery failed: returning message to sender Print
26 APR. at 16:22
Name <xxx@ya.ru>

Who
xxx <xxx@xxx.ru>



-------- Forwarded message--------
26.04.2016, 16:21, "Mail Delivery System" <mailer-daemon@server109.hosting.reg.ru>:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

xxx@xxx.ru
 Unknown user

------ This is a copy of the message, including all the headers. ------

Return-path: <xxx@ya.ru>
Received: from u0050601 by server109.hosting.reg.ru with local (Exim 4.72)
 (envelope-from <xxx@ya.ru>)
 id 1av2vE-0003fT-TH
 for xxx@xxx.ru; Tue, 26 Apr 2016 16:21:00 +0300
Date: Tue, 26 Apr 2016 16:21:00 +0300
Message-Id: <e1av2ve-0003ft-th@server109.hosting.reg.ru>
To: xxx@xxx.ru
Subject: Application mailing! "#Repost"
X-PHP-Originating-Script: 705:index.php
Content-type: text/html; charset="utf-8"
 From: xxx@xxx.ru
From: xxx@ya.ru

<p><strong>Email:</strong> xxx@xxx.ru</p><p><strong>Phone:</strong> xxxx</p>


-------- The end of forwarded message --------


-- 
With uvajeniem,</e1av2ve-0003ft-th@server109.hosting.reg.ru></xxx@ya.ru></xxx@ya.ru></mailer-daemon@server109.hosting.reg.ru></xxx@xxx.ru></xxx@ya.ru>


What could be the problem ??
July 12th 19 at 17:23
2 answers
July 12th 19 at 17:25
1) the Check is properly configured mail server in the worst case, you banish and letters do not reach either the mail server is not quite the word, to bad they go in spam and in the Inbox of either not seen you in spam lists where you can unsubscribe
2) Check mail managers
3) Test managers, there have been occasions when the Manager specifically said that the letters do not reach and worked hard.

And generally it is better to use swiftmailer or api such as mandril or mailgun and maybe even amazone ses.
Ideal when leads lie immediately in crm. If there is no crm that managers can safely throw excuses. And so we see immediately where issues and KPI's and salespeople.
July 12th 19 at 17:27
Yandex tells you that it is incorrect recipient address

Find more questions by tags Mail for domainPHPYandex