Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Allow you to store your mails as a spool and send transactionnal direct mails or store it in db

Notifications You must be signed in to change notification settings

AppVentus/AvSpoolMailerBundle

Repository files navigation

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

  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

About

Allow you to store your mails as a spool and send transactionnal direct mails or store it in db

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages