• Register
0 votes
3k views

Problem :

I got stuck on below error I am trying to configure my SMTP mail on laravel

Expected response code 250 but got code "530", with message "530 5.7.1 authentication required "

Below is the configuration on .env

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

I have tried to authenticate my SMTP on the env but I keep facing the above error so for now I am stuck on that error.

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

Your mail.php on the config you have declared the host as smtp.mailgun.org and the port is 587 while on the env is different. So you need to change the mail.php as shown below:

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

'port' => env('MAIL_PORT', 2525),

if you want to use the mailtrap. Then run below command

php artisan config:cache

OR

I can see that you have all the settings right. You just need to end your local web server and start it again with the below command

php artisan serve

Every time you change the .env file, you just need to restart your server for your new options to start taking effect.

Or just clear and cache the configuration with below command.

php artisan config:cache

I hope the above solutions will help you.

9 7 4
38,600 points

Related questions

0 votes
1 answer 20 views
20 views
Problem: why is this still happinig with me ? Expected response code 250 but got code "530", with message "530 5.7.1 authentication required ".
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 17 views
17 views
Problem: expected response code 250 but got code "530", with message "530 5.7.1 authentication required
asked Feb 23 Muneeb Saadii 130k points
0 votes
1 answer 28 views
28 views
Problem: expected response code 220 but got code "", with message ""
asked Feb 17 Dan phillip 4.8k points
0 votes
1 answer 3 views
3 views
Problem: Got stuck with this error > class 'mongodb\driver\manager' not found
asked Mar 21 Azlan2020 2.3k points
0 votes
1 answer 3 views
3 views
Problem: I got the following error > clang: error: unsupported option '-fopenmp'
asked Mar 30 Azlan2020 2.3k points
0 votes
1 answer 6 views
6 views
Problem: I got an error > class 'ci_controller' not found
asked Mar 26 Azlan2020 2.3k points
0 votes
1 answer 7 views
7 views
Problem: Got a Fatal error > class 'input' not found
asked Mar 21 Azlan2020 2.3k points
0 votes
1 answer 26 views
26 views
Problem: I got the error > class 'league\flysystem\awss3v3\awss3adapter' not found
asked Mar 21 Azlan2020 2.3k points
0 votes
1 answer 393 views
393 views
Problem : I am trying to learn the pSQL. I recently moved my Laravel App from the MySQL to pSQL. But now I keep on getting below error. “The Response content must be a string or object implementing __toString(), "boolean" given.” I have the API that was returning my promotion before but now it only returns the above error. Can anyone suggest me solution on above error ?
asked Feb 13, 2020 mphil 2.3k points
0 votes
2 answers 443 views
443 views
Problem : I am facing following error while trying to login from the form: Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException No message The following is my route: Route::get('/', ['as' => '/', 'uses' => 'LoginController@getLogin']); Route::get('/login', ... ']); }); The following is form tag: <form class="login-form" action="{{ route('login') }}" method="post">
asked Dec 3, 2019 alecxe 7.5k points