Answer the question
In order to leave comments, you need to log in
Why is my mail not authorized when sending smtp?
I am using smtp yandex. Since I have two-factor authentication in the mail, I created a password for the mail application, copied the password and pasted it into .env. And it turned out that the .env file became like this
MAIL_DRIVER=smtp
MAIL_HOST=smtp.yandex.ru
MAIL_PORT=465
MAIL_USERNAME=absaruslan9
MAIL_PASSWORD=password_application
MAIL_ENCRYPTION=ssl
local.ERROR: Expected response code 250 but got code "553", with message "553 5.7.1 Sender address rejected: not owned by auth user.
" {"exception":"[object] (Swift_TransportException(code: 553): Expected response code 250 but got code \"553\", with message \"553 5.7.1 Sender address rejected: not owned by auth user.
\" at /home/ruslan/Разработка/latina/admin/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:456)
[stacktrace]
private $login = '[email protected]';
private $password = '***********';
private $secure = 'ssl';
private $port = '465';
private $host = 'smtp.yandex.ru';
private $auth = true;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question