MAIL_DRIVER=sendmail
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=some-email@gmail.com
MAIL_PASSWORD=password
MAIL_ENCRYPTION=ssl
I tried ssl and tls with their respective code but shows Swift_TransportException Connection could not be established with host smtp.gmail.com [Connection timed out #110]
Mail::send('email.contact', $data, function($message) use ($data){
$message->from($data['email']);
$message->to('abc@gmail.com', 'Admin');
});
MAIL_DRIVER=smtp