Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 2.27 KB

README.md

File metadata and controls

63 lines (44 loc) · 2.27 KB

Sylius Mailer Plugin

Latest Version Software License Build Status Code Coverage Mutation testing

Enhance your Sylius store's mailing capabilities with this plugin. For now the plugin provides a logging mechanism for all emails sent from your store.

Installation

  1. Require the plugin with Composer:

    composer require setono/sylius-mailer-plugin
  2. Add the plugin to your config/bundles.php file:

    return [
        // ...
    
        Setono\SyliusMailerPlugin\SetonoSyliusMailerPlugin::class => ['all' => true],
        Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true],
    
        // ...
    ];

    Remember to add the plugin before the SyliusGridBundle.

  3. Import the plugin's routing configuration:

    # config/routes/setono_sylius_mailer.yaml
    setono_sylius_mailer:
        resource: "@SetonoSyliusMailerPlugin/Resources/config/routes.yaml"
  4. Run the database migrations:

    bin/console doctrine:migrations:diff
    bin/console doctrine:migrations:migrate

Usage

After installation, the plugin will automatically log all emails sent from your Sylius store. You can view the logged emails in the admin panel under the "Mailer > Sent Emails" section.