roshyo / mail-plugin
Configure how your emails are sent by Sylius.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 2
Type:sylius-plugin
Requires
- php: ^7.1
- sylius/sylius: ^1.1
Requires (Dev)
- behat/behat: ^3.3
- behat/mink: ^1.7
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/context-service-extension: ^1.0
- friends-of-behat/cross-container-extension: ^1.0
- friends-of-behat/service-container-extension: ^1.0
- friends-of-behat/symfony-extension: ^1.0
- friends-of-behat/variadic-extension: ^1.0
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^3.2
- phpstan/phpstan-shim: ^0.9.2
- phpunit/phpunit: ^6.5
- se/selenium-server-standalone: ^2.52
- sylius-labs/coding-standard: ^1.0
- symplify/easy-coding-standard: ^2.4
This package is auto-updated.
Last update: 2025-02-27 23:56:55 UTC
README
Configure how your emails are sent by Sylius
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
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.
Other
You can also check our other packages (including Sylius plugins) at https://github.com/BeHappyCommunication