Expected response code 250 but got code “530”, with message “530 5.7.1 Authentication required in Laravel

The error message “530 5.7.1 Authentication required” typically means that the SMTP server is requiring authentication before it will allow the message to be sent. This error is commonly encountered when trying to send email using Laravel’s built-in email sending functionality.

To resolve this issue, you will need to configure your Laravel application to provide the appropriate authentication credentials to the SMTP server. You can do this by modifying the “mail” settings in your Laravel application’s configuration file (usually located in the “config” directory).

Here is an example configuration that you could use for a Gmail account:

'mail' => [
    'driver' => 'smtp',
    'host' => 'smtp.gmail.com',
    'port' => 587,
    'from' => ['address' => 'you@gmail.com', 'name' => 'Your Name'],
    'encryption' => 'tls',
    'username' => 'you@gmail.com',
    'password' => 'your-gmail-password',
    'sendmail' => '/usr/sbin/sendmail -bs',

Make sure to replace the “host”, “username”, and “password” values with the appropriate values for your SMTP server. Once you have updated your configuration file, try sending the email again and it should work.

Another method Solution

smtp speify two times in env remove one smtp,MAIL_DRIVER,MAIL_HOST,MAIL_PORT