1 min read

Laravel Gmail Config

  1. Enable 2-step verification in Gmail (required for app-passwords)
  2. Generate a new App Password
    1. App = Mail
    2. Device = Other (custom name)
  3. Copy 16 character password into following .env variables
           MAIL_DRIVER=smtp
 MAIL_HOST=smtp.gmail.com
 MAIL_PORT=465
 [email protected]
 MAIL_PASSWORD=yourapppassword
 MAIL_ENCRYPTION=ssl