Expected response code 250 but got code 530 with message 530 5 7 1 Authentication required

0 votes

I got stuck on this error while I was trying to configure SMTP mail on laravel

here is the error

Here is my configuration on .env

MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=fff3c01db52ee0 MAIL_PASSWORD=feaeda91dc9ab6 MAIL_ENCRYPTION=TLS

here is  my mail.php on config

I have to try to authenticate the SMTP on env but I keep getting the same error so for now I have been stuck on that error. Any solution for this please?

Feb 16 in Others by Rahul
• 8,980 points
17 views

1 answer to this question.

0 votes

Your mail.php on config you declare host as smtp.mailgun.org and port is 587 while on env is different so you need to change your mail.php to

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

if you desire to use mailtrap.

Then run:-
 

php artisan config:cache

answered Feb 16 by Aditya
• 7,280 points

Related Questions In Others

0 votes
0 answers

SEOPress plugin not working with Wordpress 5.7

An error of type E_ERROR was caused ...READ MORE

Feb 14 in Others by Kichu
• 19,040 points
79 views
0 votes
0 answers

Android Studio AVD - Emulator: Process finished with exit code 1

Nothing appears to load when starting my android ...READ MORE

May 19 in Others by Kichu
• 19,040 points
97 views
0 votes
1 answer

I am trying to run following command But I end up with an error :

Hii Nishant, You are running this command inside ...READ MORE

answered Apr 6, 2020 in Others by Niroj
• 82,720 points
760 views
0 votes
0 answers

Laravel 5 – Clear Cache in Shared Hosting Server

php artisan cache:clear Is there any workaround to ...READ MORE

Jun 20 in PHP by Kithuzzz
• 320 points
6 views
0 votes
0 answers

When to generate a new Application Key in Laravel?

As it automatically sets it for me ...READ MORE

Jun 25 in PHP by narikkadan
• 10,840 points
5 views
0 votes
1 answer

How to exclude specific folders every time I run 'eb deploy' using AWS EB CLI

If there is not .ebignore file it ...READ MORE

answered Oct 24, 2018 in AWS by Priyaj
• 58,080 points
1,320 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP