asmoday74 / yii2-mailer-task
Component for sending messages via yii2-tasks
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- asmoday74/yii2-tasks: ^1.0.10
- yiisoft/yii2: ^2.0.42
- yiisoft/yii2-symfonymailer: ~2.0.3
This package is auto-updated.
Last update: 2025-03-10 10:33:21 UTC
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.