Skip to content

McSneaky/yii2-queue-mailer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Queue mailer

Queue mailer for Yii 2 framework

Build Status

Installation

Either run

php composer.phar require --prefer-dist mikk150/yii2-queuemailer "*"

or add

"mikk150/yii2-queuemailer": "*"

to the require section of your composer.json file

Usage

configure Yii2 config

'components' => [
    'mailer' => [
        'class' => 'mikk150\queuemailer\Mailer',
        'mailer' => [
            'class' => '<underlying mailer config>',
        ],
        'messageClass' => '<underlying mailer message class>',
    ],
]

and use just like you are using underlying mailer. Emails are being queued and being sent by worker

To set up yii2 queue, please refer to https://github.com/yiisoft/yii2-queue

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%