symfony/sendinblue-mailer
Symfony Mailer transport for Sendinblue/Brevo. Send transactional emails through the Brevo API using Symfony’s mailer component, with simple configuration and seamless integration for Symfony apps and any PHP project using Symfony Mailer.
This package has been deprecated in favor of the symfony/brevo-mailer, since SendInBlue has re-branded as Brevo.
Provides Sendinblue integration for Symfony Mailer.
Configuration example:
# SMTP
MAILER_DSN=sendinblue+smtp://USERNAME:PASSWORD@default
# API
MAILER_DSN=sendinblue+api://KEY@default
where:
KEY is your Sendinblue API KeyWith API, you can use custom headers.
$params = ['param1' => 'foo', 'param2' => 'bar'];
$json = json_encode(['custom_header_1' => 'custom_value_1']);
$email = new Email();
$email
->getHeaders()
->add(new MetadataHeader('custom', $json))
->add(new TagHeader('TagInHeaders1'))
->add(new TagHeader('TagInHeaders2'))
->addTextHeader('sender.ip', '1.2.3.4')
->addTextHeader('templateId', 1)
->addParameterizedHeader('params', 'params', $params)
->addTextHeader('foo', 'bar')
;
This example allow you to set:
For more information, you can refer to Sendinblue API documentation.
How can I help you explore Laravel packages today?