symfony / sendinblue-mailer
Symfony Sendinblue Mailer Bridge
Fund package maintenance!
fabpot
Tidelift
symfony.com/sponsor
Installs: 194 882
Dependents: 5
Suggesters: 2
Security: 0
Stars: 21
Watchers: 4
Forks: 4
Type:symfony-mailer-bridge
Requires
- php: >=8.1
- symfony/mailer: ^5.4|^6.0
Requires (Dev)
- symfony/http-client: ^5.4|^6.0
- 6.2.x-dev
- 6.1.x-dev
- v6.1.0
- v6.1.0-RC1
- v6.1.0-BETA1
- 6.0.x-dev
- 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.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: 2022-08-11 06:57:04 UTC
README
Provides Sendinblue integration for Symfony Mailer.
Configuration example:
# API MAILER_DSN=sendinblue+api://$SENDINBLUE_API_KEY@default # SMTP MAILER_DSN=sendinblue+smtp://$SENDINBLUE_USERNAME:$SENDINBLUE_PASSWORD@default
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.