Download the PHP package appventus/spoolmailerbundle without Composer
On this page you can find all versions of the php package appventus/spoolmailerbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download appventus/spoolmailerbundle
More information about appventus/spoolmailerbundle
Files in appventus/spoolmailerbundle
Informations about the package spoolmailerbundle
AvSpoolMailerBundle
Allow you to store your mails as a spool and send transactionnal direct mails or store it in db
1) Installation
This bundle is on Packagist here : https://packagist.org/packages/appventus/spoolmailerbundle
2) Configuration :
Import this in your config.yml :
- { resource: @AvSpoolMailerBundle/Resources/config/config.yml }
Always in config.yml, overwrite the sender mail config:
av_awesome_spool_mailer:
contact_addresses:
admin:
address: [yours]
name: [yours]
noreply:
address: [yours]
name: [yours]
...
Add your owns, each row inside contact addresses will automatically be accessible in the parameter bag following this scheme :
example :
contact_addresses_**KEY**_address
3) Usage :
You can spool message in db with : $this->get('spool_mailer')->queueMessage($message);
You can send instant email in controller with : $this->get('instant_mailer')->send($message);
To send spooled messages, call : php app/console swiftmailer:spool:send
All versions of spoolmailerbundle with dependencies
swiftmailer/swiftmailer Version >=4.2.0
symfony/swiftmailer-bridge Version >=2.1.0
symfony/swiftmailer-bundle Version >=2.1.0
appventus/swiftmailerdbbundle Version ~1.0