accord / mandrill-swiftmailer-bundle
此包已被弃用且不再维护。未建议替代包。
Symfony 扩展,提供 Mandrill SwiftMailer 服务
1.3.1
2018-12-28 09:12 UTC
Requires
- php: >=5.4
- accord/mandrill-swiftmailer: >=1.2
- symfony/framework-bundle: >=2.3
- symfony/swiftmailer-bundle: >=2.3
Requires (Dev)
- phpunit/phpunit: ~5.7
- symfony/config: >=2.3
- symfony/finder: >=2.3
README
一个基于 Mandrill API 的 Mandrill 传输实现的 Symfony 扩展
需求
Mandrill API 密钥 - https://mandrillapp.com/
安装
使用 composer 需求此包
composer require accord/mandrill-swiftmailer-bundle
将 AccordMandrillSwiftMailerBundle 添加到应用程序内核
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Accord\MandrillSwiftMailerBundle\AccordMandrillSwiftMailerBundle(),
// ...
);
}
将您的 API 密钥添加到 config.yml
// app/config/config.yml
accord_mandrill_swift_mailer:
api_key: MANDRILL_API_KEY
async: false # optional
subaccount: ~ # default null
配置 Swiftmailer 以使用此新传输
// app/config/config.yml
swiftmailer:
transport: accord_mandrill