Yii2-Email-Queue
Email Queue Module, (*1)
# How To Install?
via composer run, (*2)
php composer.phar require sky/emailqueue "*"
or add in composer.json to require selection, (*3)
"sky/emailqueue" : "*"
Web Application
set web Application module at main config file, (*4)
'modules' => [
'emailqueue' => [
'class' => 'sky\emailqueue\Module'
]
],
Console Application
set console Application module at main config file, (*5)
'modules' => [
'emailqueue' => [
'class' => 'sky\emailqueue\Module'
]
],
run console for do migration, (*6)
./yii migrate --migrationPath="@sky/emailqueue/migrations"
Module Configuration
- [int] serverID (default 1)
define your server id
- [array] serverAvaliable
list of avaliable server to allocation task
- [bool] deleteAfterSend (default false)
delete data queue after successful send email
- [int] emailSendPerSession (default 60)
how much email to send every session
- [bool] autoAllocationServer (default true)
auto allocation task queue to server depend on your
serverAvaliable
- [mix] mailer
mailer component