Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/symfony/sendinblue-mailer
Symfony Sendinblue Mailer Bridge
https://github.com/symfony/sendinblue-mailer
component php symfony symfony-component
Last synced: about 1 month ago
JSON representation
Symfony Sendinblue Mailer Bridge
- Host: GitHub
- URL: https://github.com/symfony/sendinblue-mailer
- Owner: symfony
- License: mit
- Created: 2020-09-24T14:13:26.000Z (about 4 years ago)
- Default Branch: 6.4
- Last Pushed: 2024-09-26T09:27:52.000Z (about 1 month ago)
- Last Synced: 2024-09-30T17:20:58.400Z (about 1 month ago)
- Topics: component, php, symfony, symfony-component
- Language: PHP
- Homepage: https://symfony.com/mailer
- Size: 63.5 KB
- Stars: 37
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Sendinblue Bridge
=================Provides Sendinblue integration for Symfony Mailer.
Configuration example:
```env
# 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.
```php
$params = ['param1' => 'foo', 'param2' => 'bar'];
$json = json_encode(['custom_header_1' => 'custom_value_1']);$email = new 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-CustomFor more information, you can refer to [Sendinblue API documentation](https://developers.sendinblue.com/reference#sendtransacemail).
Resources
---------* [Contributing](https://symfony.com/doc/current/contributing/index.html)
* [Report issues](https://github.com/symfony/symfony/issues) and
[send Pull Requests](https://github.com/symfony/symfony/pulls)
in the [main Symfony repository](https://github.com/symfony/symfony)