2017 © Pedro PelĂĄez
 

sylius-plugin mail-plugin

Configure how your emails are sent by Sylius.

image

behappy/mail-plugin

Configure how your emails are sent by Sylius.

  • Tuesday, June 26, 2018
  • by Roshyo
  • Repository
  • 4 Watchers
  • 4 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

sylius-mail-plugin

Configure how your emails are sent by Sylius, (*1)

Installation-procedure

$ 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
imports:
    ...
    - { resource: "@BeHappySyliusMailPlugin/Resources/config/app/config.yml" }
# in routing.yml
...

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

Generate database

Simply launch, (*2)

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., (*3)

/!\ At this moment, SMTP mode hasn't been tested., (*4)

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

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

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), (*7)

Feel free to contribute

You can also ask your questions at the mail address in the composer.json mentioning this package., (*8)

Other

You can also check our other packages (including Sylius plugins) at https://github.com/BeHappyCommunication, (*9)

The Versions