Download the PHP package tss/automailer-bundle without Composer
On this page you can find all versions of the php package tss/automailer-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tss/automailer-bundle
More information about tss/automailer-bundle
Files in tss/automailer-bundle
Package automailer-bundle
Short Description Adds Doctrine spool to Swiftmailer
License MIT
Informations about the package automailer-bundle
TSSAutomailerBundle
Swiftmailer Spool for Doctrine packaged into a Symfony2 Bundle
Installation instructions:
- Easiest way to install is via composer, add those lines to
./composer.json
:
and then run composer.phar install
-
Then enable the bundle in
./app/AppKernel.php
: -
Change Swiftmailer spool type in
./app/config.yml
: - Update your db with Bundle's entity:
Set a cron to execute the queue:
You can also test the spool by adding a new email with:
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
:
You can also customize the entity manager:
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:
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.
Enjoy :)
All versions of automailer-bundle with dependencies
swiftmailer/swiftmailer Version >=4.2.0
symfony/swiftmailer-bridge Version >=2.1
symfony/swiftmailer-bundle Version >=2.1.0