Updated 5 June 2026
Email notifications help eCommerce stores keep customers informed about important activities such as orders, account updates, and password resets.
They also enable timely communication through shipping updates, confirmations, and other essential store email notifications.
In this guide, you will learn how to configure Gmail SMTP in Bagisto and send emails securely using your Gmail account.
Gmail SMTP is a reliable way to send emails from your Bagisto store. It helps ensure that important notifications reach your customers without any issues.
Previously, users could enable the Less Secure Apps option in Gmail and use their account password for SMTP authentication.
However, Google has discontinued this feature to improve account security.
To send emails through Gmail now, you must:
1) Sign in to your Gmail account.
2) Open your Google Account settings.
3) Click on the Security tab from the left menu.

1)Under the Signing in to Google section, click 2-Step Verification.
2)Follow the on-screen instructions.
3)Complete the setup process.

1)Return to the Security section of your Google Account.
2)Click App Passwords.
3)Verify your identity if prompted.

1)Click the Select App dropdown.Lead Generation activities:
2)Choose Other (Custom Name).
3)Enter a name such as Bagisto SMTP.
4)Click Generate.
Google will generate a unique 16-character App Password

Copy the generated password and store it safely.
Important: Google displays the App Password only once. Make sure to save it before closing the window.

Open the .env file of your Bagisto project and update the mail settings as shown below:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=467 MAIL_USERNAME=store@gmail.com MAIL_PASSWORD=<Your_App_Pasword> MAIL_ENCRYPTION=ssl SHOP_MAIL_FROM=store@gmail.com |
| Parameter | Description |
| MAIL_MAILER | Defines the mail driver used by Laravel |
| MAIL_HOST | Gmail SMTP server address |
| MAIL_PORT | SMTP port for SSL connection |
| MAIL_USERNAME | Your Gmail email address |
| MAIL_PASSWORD | Generated Google App Password |
| MAIL_ENCRYPTION | SSL encryption method |
| SHOP_MAIL_FROM | Sender email address for store notifications |
After updating the .env file, clear the application cache by running:
|
1 |
php artisan config:clear |
|
1 |
php artisan cache:clear |
This ensures that Bagisto loads the latest mail configuration.
Setting up Gmail SMTP in Bagisto is a simple and secure way to send transactional emails from your store.
Since Google has discontinued support for Less Secure Apps, App Passwords are now the recommended method for Gmail SMTP authentication.
Enable 2-Step Verification and use an App Password to securely send store emails and notifications.
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
Be the first to comment.