Expected response code 250 but got code \”530\”, with message \”530 5.7.1 Authentication required

QuestionsCategory: LaravelExpected response code 250 but got code \”530\”, with message \”530 5.7.1 Authentication required
VR Soft Coder Staff asked 6 months ago

1 Answers
VR Soft Coder Staff answered 6 months ago

Solution 1

you need to change your mail.php to

<pre>
'host' => env('MAIL_HOST', 'mailtrap.io'),
'port' => env('MAIL_PORT', 2525),

Then run

php artisan config:cache

Solution 2

Add SMTP details to you env files

MAIL_DRIVER = smtp
MAIL_HOST = smtp.gmail.com
MAIL_PORT = 587
MAIL_USERNAME = qa.abc@gmail.com
MAIL_PASSWORD = abc@*
MAIL_ENCRYPTION = tls

Also, you have to update Queue_drive in you env file

BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=database

Your Answer

Related Posts

Begin typing your search above and press enter to search. Press ESC to cancel.

Back To Top