symfony / sendinblue-mailer
Symfony Sendinblue Mailer Bridge
Fund package maintenance!
fabpot
Tidelift
symfony.com/sponsor
Installs: 707 643
Dependents: 10
Suggesters: 5
Security: 0
Stars: 31
Watchers: 5
Forks: 5
Type:symfony-mailer-bridge
Requires
- php: >=8.1
- symfony/mailer: ^5.4.21|^6.2.7
Requires (Dev)
- symfony/http-client: ^5.4|^6.0
Conflicts
- symfony/mime: <6.2
- 7.0.x-dev
- 6.4.x-dev
- 6.3.x-dev
- v6.3.0
- v6.3.0-RC1
- v6.3.0-BETA1
- 6.2.x-dev
- v6.2.10
- v6.2.7
- v6.2.5
- v6.2.0
- v6.2.0-RC1
- v6.2.0-BETA1
- 6.1.x-dev
- v6.1.11
- v6.1.0
- v6.1.0-RC1
- v6.1.0-BETA1
- 6.0.x-dev
- v6.0.19
- v6.0.8
- v6.0.7
- v6.0.3
- v6.0.0
- v6.0.0-RC1
- v6.0.0-BETA2
- v6.0.0-BETA1
- 5.4.x-dev
- v5.4.23
- v5.4.21
- v5.4.19
- v5.4.8
- v5.4.7
- v5.4.3
- v5.4.0
- v5.4.0-RC1
- v5.4.0-BETA2
- v5.4.0-BETA1
- 5.3.x-dev
- v5.3.14
- v5.3.4
- v5.3.0
- v5.3.0-RC1
- v5.3.0-BETA4
- v5.3.0-BETA1
- 5.2.x-dev
- v5.2.12
- v5.2.10
- v5.2.4
- v5.2.3
- v5.2.2
- v5.2.1
- v5.2.0
- v5.2.0-RC2
- v5.2.0-RC1
- v5.2.0-BETA3
- v5.2.0-BETA2
- v5.2.0-BETA1
This package is auto-updated.
Last update: 2023-05-30 19:46:14 UTC
README
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 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 informations, you can refer to Sendinblue API documentation.