Answer the question
In order to leave comments, you need to log in
Why is mail not sent to Yandex (PHP Mailer)?
I'm trying to send an email using Yandex SMTP using PHP Mailer. Registered mail, set the application password, entered the mail (activated it). PHP Mailer setup code:
$mail = new PHPMailer();
$mail->CharSet = 'UTF-8';
$mail->Mailer = 'smtp';
$mail->Host = 'smtp.yandex.ru';
$mail->Port = 465;
$mail->isSMTP();
$mail->SMTPAuth = true;
$mail->Username = EMAIL;
$mail->Password = ПАРОЛЬ ПРИЛОЖЕНИЯ;
$mail->SMTPSecure = 'ssl';
$mail->SMTPOptions = [
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
]
];
...
$mail->send();
> SMTP Error: Could not authenticate.
Answer the question
In order to leave comments, you need to log in
An application password is not required. Use the user's e-mail and password.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question