appventus/spoolmailerbundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Database spool emails

Installs: 15 440

Dependents: 1

Suggesters: 0

Security: 0

Stars: 7

Watchers: 4

Forks: 4

Open Issues: 1

Type:symfony-bundle

2.0.1 2018-03-07 10:41 UTC

This package is auto-updated.

Last update: 2023-08-09 11:19:15 UTC


README

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

  1. 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
  1. 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