© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
johny7

GMail Mailer for laravel/filament

Moin together,

I have now searched the web for various keywords, but can't find a solution for sending mail in laravel/filament with GMail. There is a solution for workspace organizations (https://github.com/synio-wesley/laravel-gmail-service-account-mail-driver), but none for sending mails with my private email address from GoogleMail.

Old instructions refer to smtp with ssl or tls, but that is deactivated by Google since may 2022.

It can't be that I'm the first one who needs this. How do you handle this?
Solution
Found it now by myself via https://medium.com/@laraveltuts/how-to-send-mail-using-gmail-in-laravel-9-76d110779a4a

You have to create an App Password via https://myaccount.google.com/apppasswords and can use it in
.env
.env
like:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=myusername@gmail.com
MAIL_PASSWORD="the created app password"
MAIL_ENCRYPTION=ssl
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=myusername@gmail.com
MAIL_PASSWORD="the created app password"
MAIL_ENCRYPTION=ssl
Medium
How to send mail using Gmail in Laravel 9?
In this tutorial we are going to learn how to send mail using Gmail in Laravel 9.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Filament is ready for Laravel 11?
FilamentFFilament / ❓┊help
2y ago
Setup Filament test for Laravel app
FilamentFFilament / ❓┊help
3y ago
Laravel Octane and Filament
FilamentFFilament / ❓┊help
2y ago
Laravel-Filament Qr generate
FilamentFFilament / ❓┊help
2y ago