hyphenio / mandrill-swiftmailer
Mandrill 的 SwiftMailer 传输实现
1.1.0
2016-05-04 03:53 UTC
Requires
- php: >=5.4
- hyphenio/mandrill: ~1.0
- swiftmailer/swiftmailer: ~5.3
Requires (Dev)
- phpunit/phpunit: ~4.5
This package is not auto-updated.
Last update: 2024-09-20 18:59:33 UTC
README
Mandrill 的 SwiftMailer 传输实现
安装
使用 composer 安装包
composer require accord/mandrill-swiftmailer
使用
$dispatcher = new Swift_Events_SimpleEventDispatcher();
$transport = new MandrillTransport($dispatcher);
$transport->setApiKey('ABCDEFG12345');
$transport->setAsync(true); # Optional
$transport->send($message);