Answer the question
In order to leave comments, you need to log in
How to set up Laravel and Yandex smtp (mail for domains)?
The following options are available:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.yandex.ru
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=user_password
MAIL_ENCRYPTION=ssl
503 5.5.4 Error: send AUTH command first.
Answer the question
In order to leave comments, you need to log in
It is necessary in the account settings, on Yandex (Yanex Passport):
1. fill in personal information
2. In the "Passwords and authorization" block there is an "Application passwords" block and the "Create another one" link - create a new password there and use it in the Laravel config
I also suffered for a long time. The answer above didn't help.
Decided the next day radically.
Sawed out all Mail-settings from .env
And entered the following into config/mail.php:
'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp.yandex.ru'),
'port' => env('MAIL_PORT', 587),
'from' => [
'address' => '[email protected]',
'name' => 'Type What You Want',
],
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME', '[email protected]'),
'password' => env('MAIL_PASSWORD', 'secretpass'),
There was the same problem. The issue was resolved by adding the following lines to .env:
[email protected]
MAIL_FROM_NAME=Sender_Name
The same problem was. I decided as written above, I give the full config in the .env file:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.yandex.ru
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=ПАРОЛЬ
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME=Vacanc
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question