2017 © Pedro Peláez
 

symfony-bundle mailerbundle

Mailer helper for Swiftmailer - spooling to database.

image

riconect/mailerbundle

Mailer helper for Swiftmailer - spooling to database.

  • Tuesday, August 30, 2016
  • by veego
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Latest Stable Version License, (*1)

This bundle is a mail helper for Symfony framework.

At present, it only works with the Doctrine ODM (MongoDB)., (*2)

Installation and configuration

1. Install via Composer

``` sh $ composer require "riconect/mailerbundle:^1.0", (*3)


### 2. Add the bundle to your application's kernel ``` php // app/AppKernel.php public function registerBundles() { $bundles = [ // ... new Riconect\MailerBundle\RiconectMailerBundle(), // ... ]; }

3. Configure SwiftMailer to use the bundle

``` yaml, (*4)

app/config/config.yml

swiftmailer: spool: type: service id: riconect_mailer.spool, (*5)


That's it. Now your emails is saved to default database in `messages` collection. ### 4. Add cron job. ``` sh $ crontab -e

Add this line to execute command every minute:, (*6)

* * * * * /usr/bin/php /PATH/TO/YOUR/PROJECT/bin/console swiftmailer:spool:send --message-limit=100 --env=dev > /dev/null

Don't forget to change options like --env=prod in production server., (*7)

If you wish to keep sent emails in database, configure the bundle:, (*8)

``` yaml, (*9)

app/config/config.yml

riconect_mailer: keep_sent_emails: true, (*10)



Default Configuration: ``` yaml riconect_mailer: database_type: mongodb keep_sent_emails: false message_class: Riconect\MailerBundle\Document\Message

The Versions

30/08 2016

dev-master

9999999-dev

Mailer helper for Swiftmailer - spooling to database.

  Sources   Download

MIT

The Requires

 

by Dariusz Paliwoda

mongodb swiftmailer doctrine spool

30/08 2016

1.0.0

1.0.0.0

Mailer helper for Swiftmailer - spooling to database.

  Sources   Download

MIT

The Requires

 

by Dariusz Paliwoda

mongodb swiftmailer doctrine spool