Registry / networking / symfony-sendgrid-mailer

symfony-sendgrid-mailer

JSON →
library8.1.0phppackagistunverified

Symfony Sendgrid Mailer Bridge

composer require symfony/sendgrid-mailer
INSTALL
IMPORT
SIG · SYMFONY-SENDGRID-M
S
symfony-sendgrid-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.

SendgridApiTransport
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridApiTransport;

Send an email via SendGrid using the Symfony Mailer component.

use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridApiTransport; use Symfony\Component\Mailer\Mailer; $transport = new SendgridApiTransport('SENDGRID_API_KEY'); $mailer = new Mailer($transport); $email = (new Email())->from('from@example.com')->to('to@example.com')->subject('Hello')->text('Body'); $mailer->send($email);
Debug
Known issues
breakingRequires the symfony/mailer package and a valid SendGrid API key.
fix
Install symfony/mailer and configure the API key in your .env file.
affects: >=8.0.0
Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
symfony-sendgrid-mailer — pip install symfony-sendgrid-mailer · libregistry