Registry / networking / symfony-google-mailer

symfony-google-mailer

JSON →
library8.1.0phppackagistunverified

Symfony Google Mailer Bridge

composer require symfony/google-mailer
INSTALL
IMPORT
SIG · SYMFONY-GOOGLE-MAI
S
symfony-google-mailer
networkingphpv8.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GmailTransport
✓ use Symfony\Component\Mailer\Bridge\Google\Transport\GmailTransport;

Send an email via Gmail using Symfony Mailer.

use Symfony\Component\Mailer\Bridge\Google\Transport\GmailTransport; use Symfony\Component\Mailer\Mailer; $transport = new GmailTransport('user@gmail.com', 'password'); $mailer = new Mailer($transport); $email = (new Email())->from('user@gmail.com')->to('recipient@example.com')->subject('Test')->text('Hello!'); $mailer->send($email);
Debug
Known issues
gotchaGmail requires an App Password if 2FA is enabled; regular password may fail.
fix
Generate an App Password from Google Account settings.
affects: >=1.0
Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
32
Resources
symfony-google-mailer — pip install symfony-google-mailer · libregistry