Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexeevdv/yii2-chain-mailer
Yii2 mailer implementation that allow you to use multiple submailers.
https://github.com/alexeevdv/yii2-chain-mailer
mailer yii2 yii2-extension
Last synced: about 2 months ago
JSON representation
Yii2 mailer implementation that allow you to use multiple submailers.
- Host: GitHub
- URL: https://github.com/alexeevdv/yii2-chain-mailer
- Owner: alexeevdv
- License: mit
- Created: 2018-02-19T08:52:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-16T05:22:26.000Z (over 6 years ago)
- Last Synced: 2024-11-13T14:57:00.211Z (2 months ago)
- Topics: mailer, yii2, yii2-extension
- Language: PHP
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yii2-chain-mailer
[![Build Status](https://travis-ci.org/alexeevdv/yii2-chain-mailer.svg?branch=master)](https://travis-ci.org/alexeevdv/yii2-chain-mailer)
[![codecov](https://codecov.io/gh/alexeevdv/yii2-chain-mailer/branch/master/graph/badge.svg)](https://codecov.io/gh/alexeevdv/yii2-chain-mailer)
![PHP 5.6](https://img.shields.io/badge/PHP-5.6-green.svg)
![PHP 7.0](https://img.shields.io/badge/PHP-7.0-green.svg)
![PHP 7.1](https://img.shields.io/badge/PHP-7.1-green.svg)
![PHP 7.2](https://img.shields.io/badge/PHP-7.2-green.svg)Yii2 mailer implementation that allow you to use multiple submailers.
## Installation
The preferred way to install this extension is through [composer](https://getcomposer.org/download/).
Either run
```bash
$ 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
```php
//...
'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