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, 2022 in Others by Rahul
• 9,680 points
3,012 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, 2022 by Aditya
• 7,680 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, 2022 in Others by Kichu
• 19,040 points
900 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, 2022 in Others by Kichu
• 19,040 points
1,554 views
0 votes
2 answers

Excel VBA App stops spontaneously with message "Code execution has been halted"

Solution Press the "Debug" button in the popup. Press Ctrl+Pause|Break twice. Hit ...READ MORE

answered Sep 29, 2022 in Others by narikkadan
• 63,600 points
1,221 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, 2022 in PHP by Kithuzzz
• 38,000 points
554 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, 2022 in PHP by narikkadan
• 63,600 points
557 views
0 votes
0 answers

Artisan, creating tables in database

In Laravel 5, I'm attempting to build ...READ MORE

Jul 22, 2022 in PHP by Kithuzzz
• 38,000 points
408 views
0 votes
0 answers

Laravel 5.4 Storage link

When I go to the link folder ...READ MORE

Jul 22, 2022 in PHP by Kithuzzz
• 38,000 points
896 views
0 votes
1 answer

PHP & MySQL: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given

Your query seems to have an ERROR ...READ MORE

answered Feb 16, 2022 in Others by Aditya
• 7,680 points
4,832 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP