Skip to content

Logging email bundle for Swiftmailer. Gives you the ability to log in a database the messages being sent for possible resending and auditing.

License

Notifications You must be signed in to change notification settings

ntidev/EmailBundle

Folders and files

NameName
Last commit message
Last commit date
Oct 12, 2022
Aug 5, 2020
Apr 24, 2024
Jun 19, 2017
Apr 24, 2024
Oct 12, 2022
Apr 4, 2024
Jan 10, 2017
Dec 16, 2018
Jan 10, 2017
Jan 10, 2017
Jan 10, 2017
Dec 12, 2017
Dec 16, 2018

Repository files navigation

NTIEmailBundle

Installation

  1. Install the bundle using composer:

    $ composer require ntidev/email-bundle "dev-master"
    
  2. Add the bundle configuration to the AppKernel

    public function registerBundles()
    {
        $bundles = array(
            ...
            new NTI\EmailBundle\NTIEmailBundle(),
            ...
        );
    }
    
  3. Update the database schema

    $ php app/console doctrine:schema:update
    

Usage

Cronjob

Schedule the following cronjob to check and send emails in the queue:

# /etc/crontab
# ...
# NTIEmailBundle
* * * * * [user] php /path/to/project/app/console nti:email:check