I am sending email through Gmail but it is given the error "unable to connect to ssl://smtp.gmail.com:587 (Connection refused)".
my .env file is
MAIL_DRIVER=sendmail
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=587 // my port also try 465
[email protected] //my gmail id
MAIL_PASSWORD=mypasswrd //my password
MAIL_ENCRYPTION=tls
MAIL_FROM_NAME="Laravel Dev"
[email protected]
how can i resolve that error.