laravel gmail mailer code example
Example 1: laravel gmail
MAIL_DRIVER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=465
MAIL_USERNAME=ENTER_YOUR_EMAIL_ADDRESS(GMAIL)
MAIL_PASSWORD=ENTER_YOUR_GMAIL_PASSWORD
MAIL_ENCRYPTION=ssl
Example 2: email configuration for gmail in laravel
MAIL_DRIVER=smtpMAIL_HOST=smtp.googlemail.comMAIL_PORT=465MAIL_USERNAME=ENTER_YOUR_EMAIL_ADDRESS(GMAIL)MAIL_PASSWORD=ENTER_YOUR_GMAIL_PASSWORDMAIL_ENCRYPTION=ssl