I configured laravel\'s mail service with mandrill driver. No problems here!
Now, at certain point of my application, I need to send a mail via gmail.
I did
For Laravel 6 you should use it like this:
// Backup your default mailer
$backup = Mail::getSwiftMailer();
// Setup your gmail mailer
$gmail = new \Swift_SmtpTransport('smtp.gmail.com', 465, 'ssl');
// Set the mailer as gmail
Mail::setSwiftMailer(new \Swift_Mailer($gmail));
// Send your message
Mail::send();
// Restore your original mailer
Mail::setSwiftMailer($backup);