Yii2 mailer implementation that allow you to use multiple submailers.
The preferred way to install this extension is through composer.
$ php composer.phar require alexeevdv/yii2-chain-mailer "~2.0"
require section of your
//... '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 ], ], //... ], //...
If you use
embedContent methods you should know that CID will be returnted only for first configured mailer. Keep it in mind