2017 © Pedro Peláez
 

library background-queue-mailer

Delegate sending emails to adt/background-queue.

image

adt/background-queue-mailer

Delegate sending emails to adt/background-queue.

  • Wednesday, March 21, 2018
  • by michallohnisky
  • Repository
  • 5 Watchers
  • 0 Stars
  • 668 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 22 % Grown

The README.md

Background Queue Mailer

Delegates sending emails to adt/background-queue., (*1)

Installation

composer require adt/background-queue-mailer

Usage

services:
    smtpMailer:
        class: \Nette\Mail\SmtpMailer
        autowired: no # this is important

    nette.mailer: \ADT\Mail\BackgroundQueueMailer\Mailer(@smtpMailer, 'backgroundMail')

backgroundQueue:
    callbacks:
        backgroundMail: @nette.mailer::process

where @smtpMailer is outgoing mailer, and backgroundMail is unique callback name., (*2)

Callback name has to be same in both mailer definition and BackgroundQueue callback list. If they are not, warning is logged using Tracy. This should get resolved here., (*3)

The autowired: no option is important because Nette DI container would not know which \Nette\Mail\IMailer to inject in your application. By setting autowired: no on SMTP mailer only one instance of IMailer interface remains., (*4)

You cannot set autowired: no on nette.mailer because your application would not be able to inject it., (*5)

It is also important that you autowire \Nette\Mail\IMailer throughout your application., (*6)

The Versions

21/03 2018

dev-master

9999999-dev

Delegate sending emails to adt/background-queue.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

21/03 2018

v1.1

1.1.0.0

Delegate sending emails to adt/background-queue.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

11/10 2017

v1.0.2

1.0.2.0

Delegate sending emails to adt/background-queue.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

27/07 2017

v1.0.1

1.0.1.0

Delegate sending emails to adt/background-queue.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

26/07 2017

v1.0

1.0.0.0

Delegate sending emails to adt/background-queue.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires