• Register
0 votes

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


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

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


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 212 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 mphil 2.3k points
0 votes
2 answers 246 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
0 votes
1 answer 200 views
Problem : I am currently using the Mac OS Yosemite and Laravel 5.0. I am new to Laravel 5.0. In the local environment whenever I run the below command php artisan migrate I always encounter below error : &ldquo;Access denied for user 'homestead'@'localhost' (using password: YES)&rdquo; I am unable to fix above error. Any clue to fix the above error?
asked Feb 13 mphil 2.3k points
0 votes
1 answer 41 views
Problem : Facing migration error on Laravel 5.4 with php artisan make:auth command as follows: syntax error or access violation: 1071 specified key was too long; max key length is 767 bytes
asked Nov 13, 2019 peterlaw 6.9k points