gregoryeple / mail-plugin
Configure how your emails are sent by Sylius.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 2
Type:sylius-plugin
Requires
- php: ^8.0
- sylius/sylius: ^1.1
- symfony/mailer: ^5|^6|^7
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/mink-debug-extension: ^2.0
- friends-of-behat/symfony-extension: ^2.0
- friends-of-behat/variadic-extension: ^1.0
- phpspec/phpspec: ^7.5
- phpunit/phpunit: ^10.0
- se/selenium-server-standalone: ^2.52
- sylius-labs/coding-standard: ^4.0
- symplify/easy-coding-standard: ^9.0
This package is auto-updated.
Last update: 2024-11-11 09:29:41 UTC
README
Configure how your emails are sent by Sylius.
Installation-procedure
$ composer require gregoryeple/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.
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)
Repository history
This repository has been initialy created to make BeHappyCommunication/SyliusMailPlugin compatible with PHP 8.
Works on Sylius 1.13. (other versions have not been tested)
Credits
- Stephane DECOCK, and all contributors
- Forked from SyliusMailPlugin