2017 © Pedro Peláez
 

yii2-extension yii2-queuemailer

yii2 queue mailer component

image

mikk150/yii2-queuemailer

yii2 queue mailer component

  • Monday, July 16, 2018
  • by mikk150
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2,914 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

Yii2 Queue mailer

Queue mailer for Yii 2 framework, (*1)

Build Status codecov PHP 5.6 PHP 7.0 PHP 7.1 PHP 7.2 PHP 7.3, (*2)

Installation

Either run, (*3)

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

or add, (*4)

"mikk150/yii2-queuemailer": "*"

to the require section of your composer.json file, (*5)

Usage

configure Yii2 config, (*6)

'components' => [
    'mailer' => [
        'class' => \mikk150\queuemailer\Mailer::class,
        'mailer' => [
            'class' => '<underlying mailer config>',
            'messageClass' => '<underlying mailer message class>',
        ],
        'queue' => 'mailer-queue', // in case you need specific queue
    ],
]

and use just like you are using underlying mailer. Emails are being queued and being sent by worker, (*7)

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

Retryable job

You can setup retryable job to make several attemts of mail sending., (*9)

'components' => [
    'mailer' => [
        'class' => \mikk150\queuemailer\Mailer::class,
        'jobConfig' => [
            'class' => \mikk150\queuemailer\jobs\MailRetryableJob::class,
            'attempts' => 10,
            'timeToRetry' => 600, // ten minutes
        ],
    ],
]

The Versions

16/07 2018

dev-master

9999999-dev

yii2 queue mailer component

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

extension yii2 mailer queue

01/11 2017
20/06 2016

1.0.1

1.0.1.0

yii2 queue mailer component

  Sources   Download

GPL-2.0

The Requires

 

extension yii2 mailer queue

20/06 2016

1.0.0

1.0.0.0

yii2 queue mailer component

  Sources   Download

GPL-2.0

The Requires

 

extension yii2 mailer queue