symfony / brevo-mailer
Symfony Brevo Mailer Bridge
Fund package maintenance!
fabpot
Tidelift
symfony.com/sponsor
Installs: 489 651
Dependents: 3
Suggesters: 0
Security: 0
Stars: 14
Watchers: 6
Forks: 3
Type:symfony-mailer-bridge
Requires
- php: >=8.1
- symfony/mailer: ^7.2
Requires (Dev)
- symfony/http-client: ^6.3|^7.0
- symfony/webhook: ^6.3|^7.0
Conflicts
- symfony/mime: <6.2
- 7.3.x-dev
- 7.2.x-dev
- v7.2.0
- v7.2.0-RC1
- v7.2.0-BETA1
- 7.1.x-dev
- v7.1.6
- v7.1.4
- v7.1.1
- v7.1.0
- v7.1.0-RC1
- v7.1.0-BETA1
- 7.0.x-dev
- v7.0.8
- v7.0.7
- v7.0.6
- v7.0.5
- v7.0.3
- v7.0.0
- v7.0.0-RC1
- v7.0.0-BETA3
- v7.0.0-BETA1
- 6.4.x-dev
- v6.4.13
- v6.4.11
- v6.4.8
- v6.4.7
- v6.4.6
- v6.4.5
- v6.4.3
- v6.4.0
- v6.4.0-RC1
- v6.4.0-BETA3
- v6.4.0-BETA1
This package is auto-updated.
Last update: 2024-11-29 09:11:12 UTC
README
Provides Brevo integration for Symfony Mailer. This was added upon Sendinblue's rebranding to Brevo.
Configuration example:
# SMTP MAILER_DSN=brevo+smtp://USERNAME:PASSWORD@default # API MAILER_DSN=brevo+api://KEY@default
where:
KEY
is your Brevo API Key
With 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:
- templateId
- params
- tags
- headers
- sender.ip
- X-Mailin-Custom
For more information, you can refer to Brevo API documentation.