Email Configuration in Laravel

Email in laravel can be eaeily configured in laravel using smtp.

Email in laravel can be eaeily configured in laravel using smtp.

Email can be configured in larvel in .env by 2 ways:

1. Using gmail account


 MAIL_DRIVER=smtp
 MAIL_HOST=smtp.googlemail.com
 MAIL_PORT=465
 MAIL_USERNAME=johndoe@gmail.com
 MAIL_PASSWORD="john@2023"
 MAIL_ENCRYPTION=ssl

1. Using domain email account


 MAIL_DRIVER=smtp
 MAIL_HOST=domainname.com
 MAIL_PORT=587
 MAIL_USERNAME=noreply@domainname.com
 MAIL_PASSWORD="john@2023"
 MAIL_ENCRYPTION=tls

0 Comment's

Add Comment

Register to Reply

About Author

Looking for a reliable and skilled web developer? I'm Bhawesh Bhaskar, a Senior Full Stack Software Developer with proven expertise in both front-end and back-end development. I provide professional website design, custom web application development, and robust PHP solutions using Laravel, CodeIgniter, and Core PHP. I help businesses create modern, responsive, and high-performance websites that drive results. Whether you're starting from scratch or need to upgrade your existing site, I deliver solutions tailored to your goals.
💼 Let’s build something great together — contact me today for a free consultation!