Expected response code 250 but got code “530”, with message “530-5.5.1 Authentication Required #1609

  1. Just get confirmed the your email and password are correct, Try to login on mail.google.com
  2. allow less secure app to on –¬†¬†https://myaccount.google.com/lesssecureapps

Open the web.php file from home/config/web.php and try to correct the username and password

‘mailer’ => [
‘class’ => ‘yii\swiftmailer\Mailer’,
// send all mails to a file by default. You have to set
// ‘useFileTransport’ to false and configure a transport
// for the mailer to send real emails.
‘useFileTransport’ => false,
‘transport’ => [
‘class’ => ‘Swift_SmtpTransport’,
‘host’ => ‘smtp.gmail.com’,
‘username’ => ‘test@example.com’,
‘password’ => ’emailPassword’,
‘port’ => ‘587’,
‘encryption’ => ‘tls’,
//’encryption’ => ‘tls’,

Please follow and like us:

Leave a Comment

Your email address will not be published. Required fields are marked *