Laravel Password Reset

This post will help you resolve the Laravel error thats returned when a use clicks on the reset password link. ERROR: “Expected response code 250 but got code “530”, with message “530 5.7.1 Authentication required”

Laravel Reset Password Tutorial

Are your users able to “reset password” from within the login page of your Laravel application? Some configuration is needed before this feature will work with Laravel. If you have not configured Laravel for email password recovery, your users will get a 503 Internal Server error on your production server and/or the following error in your development environment: Expected response code 250 but got code “530”, with message “530 5.7.1 Authentication required? Follow these step by step instructions to resolve.

Configuration for this will be implemented with use of Mailgun’s API. You will need to sign up for an account at

Mailgun Configuration

  1. From your CLI, run: composer require guzzlehttp/guzzle
  2. In the config/mail.php file: 'driver' => env('MAIL_DRIVER', 'mailgun'),
  3. In the .env file: MAILGUN_DRIVER=mailgun
  4. Sign up for an account at
  5. Once signed up go to domains->Add New Domain
  6. Follow the steps listed on Mailgun to verify your domain
  7. You may need to change the text record listed in mailgun. For example, mailgun lists the text record hostname as being: but Godaddy requires just mailgun
  8. In you .env file:
  9. Test email – from within your web.routes file add the route:
    Route::get('test-email', function() {
        Mail::raw('Laravel Test Email!', function($message){
  10. Go test
  11. Check your inbox!

Dev Dojo