sky/emailqueue

Yii Email Queue

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2018-04-16 09:26 UTC

This package is auto-updated.

Last update: 2024-11-17 19:40:38 UTC


README

Email Queue Module

How To Install?

via composer run

php composer.phar require sky/emailqueue "*"

or add in composer.json to require selection

"sky/emailqueue" : "*"

Web Application

set web Application module at main config file

'modules' => [
    'emailqueue' => [
        'class' => 'sky\emailqueue\Module'
    ]
],

Console Application

set console Application module at main config file

'modules' => [
    'emailqueue' => [
        'class' => 'sky\emailqueue\Module'
    ]
],

run console for do migration

./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