ninjacto/yii2-mailgun
Composer 安装命令:
composer require ninjacto/yii2-mailgun
包简介
Mailgun mailer component for Yii 2 framework.
README 文档
README
Mailgun mailer for Yii 2 framework.
Install
Via Composer
$ composer require ninjacto/yii2-mailgun
Config
'components' => [ ... 'mailer' => [ 'class' => 'ninjacto\yii2mailgun\Mailer', 'domain' => 'example.com', 'key' => 'key-somekey', 'tags' => ['yii'], 'enableTracking' => false, ], ... ], ?>
Usage
Once the extension is installed, simply use it in your code by :
<?php Yii::$app->mailer->compose('<view_name>', <option>) ->setFrom("<from email>") ->setTo("<to email>") ->setSubject("<subject>") // ->setHtmlBody("<b> Hello User </b>") // ->setTextBody("Hello User") ->send(); ?>
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email ramin.farmani@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 11.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-10