Configure how your emails are sent by Sylius.

1.0.1 2018-05-31 11:24 UTC

This package is not auto-updated.

Last update: 2022-06-29 09:19:23 UTC


Configure how your emails are sent by Sylius


$ composer require behappy/mail-plugin

Enable the plugin

// in app/AppKernel.php
public function registerBundles() {
	$bundles = array(
		// ...
		new BeHappy\SyliusMailPlugin\BeHappySyliusMailPlugin(),
	// ...
#in app/config/config.yml
    - { resource: "@BeHappySyliusMailPlugin/Resources/config/app/config.yml" }
# in routing.yml

    resource: '@BeHappySyliusMailPlugin/Resources/config/routing.yml'

Generate database

Simply launch

php bin/console doctrine:schema:update --dump-sql --force

That's it !

In the BackOffice, you have now a new entry under the configuration menu where you can create your mail configuration. You can register one configuration by channel.

/!\ At this moment, SMTP mode hasn't been tested.

You can define the user sending address, their name and a reply-to.

DKIM Signature is also fully supported by setting the domain, the selector and the private key content.

Once your configuration is created, you can send a test email to any address and check the result. (don't forget do enable delivery in dev by modifying config_dev.yml)

Feel free to contribute

You can also ask your questions at the mail address in the composer.json mentioning this package.


You can also check our other packages (including Sylius plugins) at