C
C
Crash2017-12-14 14:58:10
JavaScript
Crash, 2017-12-14 14:58:10

How to make friends with SMTP from Yandex?

I wanted to set up notifications from the site via Yandex mail, but he started swearing:

Swift_TransportException
Failed to authenticate on SMTP server with username "[email protected]" using 3 possible authenticators

I set the following parameters (project on Yii2):
'smtp_host' => 'smtp.yandex.ru',
'smtp_port' => '587',
'smtp_encryption' => 'tls',
'username' => '[email protected]',
'password' => 'xxx',

What can be done here? This is not the first time that this topic has caused a headache (

Answer the question

In order to leave comments, you need to log in

7 answer(s)
R
Ravil, 2019-10-03
@test-cats

Use reduce
const data = ;
const merged = data.reduce((res, arr) => ([...res, ...arr]), []);
console log(merged);

K
kulakovfoto, 2019-05-19
@kulakovfoto

Yandex does not accept a regular mail password for third-party applications.
You must create a separate password for the application.
Log in to the web interface. Settings->Security->Enable and create app passwords.

P
Prosto, 2020-10-23
@Prosto

Generated a one-time password - did not help.
Then I turned it on in the Yandex settings

Разрешить доступ к почтовому ящику с помощью почтовых клиентов
С сервера imap.yandex.ru по протоколу IMAP

Although it would seem what smtp has to do with it
And it all worked

A
alex5e, 2017-12-15
@alex5e

The sender address when sending a letter must be the same as the address of the mailbox from which you are authorized via smtp

H
Hubbitus, 2019-08-22
@Hubbitus

If the account is new, then imap works on it immediately, but in order for sending with smtp to work, you need to go through the web interface of their mail for the first time and accept the agreement.

M
Maxim Fedorov, 2017-12-14
@Maksclub

username can without @yandex.ru?

I
Ivan Sobolev, 2017-12-14
@banek13

with encryption ssl and smtp_port 465 same error?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question