symfony/sendinblue-mailer
最新稳定版本:v6.4.24
Composer 安装命令:
composer require symfony/sendinblue-mailer
包简介
Symfony Sendinblue Mailer Bridge
README 文档
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:
KEYis 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 information, you can refer to Sendinblue API documentation.
Resources
统计信息
- 总下载量: 2.26M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 41
- 点击次数: 2
- 依赖项目数: 12
- 推荐数: 9
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04