I have been using the gmail smtp to send registration and contact emails from my website but i get this error, i am using laravel 5.6 and swiftmailer to send the emails, this use to work, but suddenly stopped working, i have not changed the email configuration and in local work so i asume the problem is with the gmail smtp

Connection could not be established with host smtp.gmail.com...
my mail.php config is

'driver' => 'smtp',
'host' => 'smtp.gmail.com',
'port' => 587,
'from' => [
'address' => "myemail@gmail.com",
AnyDesk Android VidMate APK Mobdro for Android
'name' => "My website name",
],
'encryption' => "ssl",
'username' => "myemail@gmail.com",
'password' => "apppassword",
'sendmail' => '/usr/sbin/sendmail -bs',
'markdown' => [
'theme' => 'default',

    'paths' => [
        resource_path('views/vendor/mail'),
    ],
],

the gmail smtp was updated? i already had an app password

i have create a new app password, changed the encryption from tls to ssl but nothing.

1 réponse


Hi,
Look at this .