Answer the question
In order to leave comments, you need to log in
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
'smtp_host' => 'smtp.yandex.ru',
'smtp_port' => '587',
'smtp_encryption' => 'tls',
'username' => '[email protected]',
'password' => 'xxx',
Answer the question
In order to leave comments, you need to log in
Use reduce
const data = ;
const merged = data.reduce((res, arr) => ([...res, ...arr]), []);
console log(merged);
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.
Generated a one-time password - did not help.
Then I turned it on in the Yandex settings
Разрешить доступ к почтовому ящику с помощью почтовых клиентов
С сервера imap.yandex.ru по протоколу IMAP
The sender address when sending a letter must be the same as the address of the mailbox from which you are authorized via smtp
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question