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
9 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
• 15,450 points
31 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,680 points
707 views
0 votes
0 answers
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,060 points
1,289 views
0 votes
0 answers

Self Created Laravel Link Not Working

I installed laravel 6.0 through composer and ...READ MORE

Dec 3, 2019 in Others by anonymous
• 120 points
201 views
+1 vote
1 answer

How to make anchor tag with routing using Laravel?

Hey @kartik, First you have to go to ...READ MORE

answered Mar 18, 2020 in Laravel by Niroj
• 82,680 points
13,160 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