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);
Audit
Dependencies
No dependency data recorded yet.