asmoday74/yii2-mailer-task
最新稳定版本:1.0
Composer 安装命令:
composer require asmoday74/yii2-mailer-task
包简介
Component for sending messages via yii2-tasks
关键字:
README 文档
README
Component for sending messages via yii2-tasks
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist asmoday74/yii2-mailer-task "*"
or add
"asmoday74/yii2-mailer-task": "*"
to the require section of your composer.json file.
Usage
As soon as the extension is installed, indicate in the settings of the Mailer component the path to it:
'components' => [ 'mailer' => [ 'class' => \asmoday74\mailertask\Mailer::class, 'viewPath' => '@common/mail', //or @app/mail for basic template yii2 'useFileTransport' => false, 'transport' => [ 'scheme' => 'smtps', 'host' => 'your smtp server', 'username' => 'your login', 'password' => 'your password', 'port' => '465', 'encryption' => 'ssl', ], ], ... ]
Other
Do not forget to configure TASKS launch according to your preferences.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-10