2017 © Pedro Peláez
 

symfony-bundle automailer-bundle

Adds Doctrine spool to Swiftmailer

image

tss/automailer-bundle

Adds Doctrine spool to Swiftmailer

  • Monday, December 11, 2017
  • by radutopala
  • Repository
  • 3 Watchers
  • 9 Stars
  • 24,896 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 1 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

TSSAutomailerBundle

Swiftmailer Spool for Doctrine packaged into a Symfony2 Bundle, (*1)

Installation instructions:, (*2)

  • Easiest way to install is via composer, add those lines to ./composer.json:
"require": {
    ...
    "tss/automailer-bundle": "dev-master"
}

and then run composer.phar install, (*3)

  • Then enable the bundle in ./app/AppKernel.php:
public function registerBundles()
{
    $bundles = [
        ...
        new TSS\AutomailerBundle\TSSAutomailerBundle(),
    ];
}
  • Change Swiftmailer spool type in ./app/config.yml:
swiftmailer:
  ...
  spool:     { type: automailer }
  • Update your db with Bundle's entity:
app/console doctrine:schema:update --force

Set a cron to execute the queue:, (*4)

app/console automailer:spool:send

You can also test the spool by adding a new email with:, (*5)

app/console automailer:test --email=info@trisoft.ro

Automailer has also a Beanstalk integration feature, which uses pheanstalk to send a job with automailer:spool:send to a queue/tube. This feature is activated automatically once a new email is sent through mailer, if pheanstalk is installed and if you add this inside ./app/config.yml:, (*6)

tss_automailer:
    beanstalk: true

You can also customize the entity manager:, (*7)

tss_automailer:
    manager: doctrine_mongodb.odm.document_manager
    class: TSS\AutomailerBundle\DefaultDocument\Automailer

You can easily customize the class used for the entity or document by simply configuring the class in config.yml and disabling the relevant functionality like this:, (*8)

tss_automailer:
    class: AppBundle\Entity\Automailer # or AppBundle\Document\Automailer, your specific path to your entity or document
    disable_default_document: true # disables the default document so that you can use your own
    disable_default_entity: true # disables the default entity so that you can use your own

In order to customize the entity or document that you wish to use with your own functionality, you can do so by extending TSS\Automailer\Model\Automailer and adding the relevant @ODM\Document() or @ORM\Entity() annotation to your class., (*9)

Enjoy :), (*10)

The Versions

11/12 2017

dev-master

9999999-dev

Adds Doctrine spool to Swiftmailer

  Sources   Download

MIT

The Requires

 

swiftmailer swift spool automailer

08/06 2016

v1.2.1

1.2.1.0

Adds Doctrine spool to Swiftmailer

  Sources   Download

MIT

The Requires

 

swiftmailer swift spool automailer

03/05 2016

v1.2.0

1.2.0.0

Adds Doctrine spool to Swiftmailer

  Sources   Download

MIT

The Requires

 

swiftmailer swift spool automailer

03/06 2014

v1.1.0

1.1.0.0

Adds Doctrine spool to Swiftmailer

  Sources   Download

MIT

The Requires

 

swiftmailer swift spool automailer