alexeevdv / yii2-chain-mailer
Package info
github.com/alexeevdv/yii2-chain-mailer
Type:yii2-extension
pkg:composer/alexeevdv/yii2-chain-mailer
2.0.0
2018-07-16 05:21 UTC
Requires
- yiisoft/yii2: ~2.0
Requires (Dev)
- codeception/codeception: ~2.4.0
- yiisoft/yii2-coding-standards: ~2.0.0
This package is auto-updated.
Last update: 2026-03-01 00:24:42 UTC
README
Yii2 mailer implementation that allow you to use multiple submailers.
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require alexeevdv/yii2-chain-mailer "~2.0"
or add
"alexeevdv/yii2-chain-mailer": "~2.0"
to the require section of your composer.json file.
Configuration
Through application component
//... 'components' => [ //... 'mailer' => [ 'class' => \alexeevdv\yii\ChainMailer::class, 'mailers' => [ [ 'class' => \yii\swiftmailer\Mailer::class, 'userFileTransport' => true, ], [ 'class' => \alexeevdv\yii\SlackMailer::class, 'webhook' => 'https://web.hook', ], // even more mailers here ], ], //... ], //...
Limitations
If you use embed and embedContent methods you should know that CID will be returnted only for first configured mailer. Keep it in mind