I'm using phpmailer class for my website forms. But YANDEX MAIL with phpmailer sending mail not working. But two days ago its worked. I was try all combinations.
For example : "ssl", "tls", "port change" , but i'ts not working. Example my code :
$mail->IsSMTP();
$mail->SMTPSecure = "ssl"; // or "tls" (I was try)
$mail->Host = "smtp.yandex.com.tr"; or "ssl://smtp.yandex.com.tr"(I was try)
$mail->Port =587; or "465,25,587"(I was try)
$mail->SMTPAuth = true; or "false"
$mail->Username = "[email protected]";
$mail->Password = "mypassword";
$mail->From = "[email protected]";
$mail->FromName =$email;
$mail->AddAddress("[email protected]");
Thanks all answers
I was also struggling about that. Below is verified, working settings. But also you need to login to Yandex and accept eula or something thru https://mail.yandex.com before trying these settings.
$mail->Host = 'smtp.yandex.com';
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';
$mail->SMTPOptions = array (
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true)
);