symfony/brevo-mailer
最新稳定版本:v8.0.0
Composer 安装命令:
composer require symfony/brevo-mailer
包简介
Symfony Brevo Mailer Bridge
README 文档
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:
KEYis 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.
Resources
统计信息
- 总下载量: 1.6M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 22
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04