Download the PHP package paneedesign/database-swiftmailer-bundle without Composer
On this page you can find all versions of the php package paneedesign/database-swiftmailer-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paneedesign/database-swiftmailer-bundle
More information about paneedesign/database-swiftmailer-bundle
Files in paneedesign/database-swiftmailer-bundle
Package database-swiftmailer-bundle
Short Description Database Spool Bundle for SwiftMailer and Symfony 3+
License MIT
Homepage https://github.com/paneedesign/DatabaseSwiftMailerBundle
Informations about the package database-swiftmailer-bundle
DatabaseSwiftMailerBundle
Introduction
This bundle add a database driven swiftmailer spool to your Symfony 3 project. It requires Symfony 3.0+ and usage of entities with Doctrine ORM.
Features
- Auto Retrying: set a maximum number of retries that spool will try to send in case of failure
- Dashboard to list the email spool and perform some actions
- Retry sending an email
- Cancelling an email sending
- Resending an email
Installing
Add composer
Add the dependency to your composer.json
Add bundle class in kernel
Register the bundle class and its dependencies in your AppKernel.php
Add routes
If you want to have a spool dashboard, add the following routes.
Configuring
Update database
Update your database schema to create the necessary entities.
Update swiftmailer config
Change your spool type from memory to db in your config.yml
Overriding default templates
You may want to override the default template to have the look and feel of your application. You can do it following the official Symfony documentation: https://symfony.com/doc/3.4/templating/overriding.html
Running
To send emails that are in the database spool, just run the following command:
You may add a cron job entry to run it periodically.
You can check the spool status with all emails at http://your_project_url/email-spool
ToDo List
- Filter emails
- Insert error message once it reaches the maximum of retries
- Last run date
- Count total sent
License
MIT