fond-of-oryx / mail-bcc
Spryker Mail BCC Module.
2.0.0
2023-01-20 14:07 UTC
Requires
- php: >=8.0
- spryker/mail: ^4.0.0
- spryker/oms: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^10.0.0 || ^11.0.0
Requires (Dev)
- fond-of-codeception/spryker: ^1.0
- spryker/code-sniffer: ^0.12
README
Description
What it does:
- Provides oms mail expander plugin (BccOrderMailExpanderPlugin) for sending bcc emails with command 'Oms/SendOrderConfirmation' to the email addresses registered in config.
Installation
composer require fond-of-oryx/mail-bcc
Configuration
Register in src/Pyz/Zed/Oms/OmsDependencyProvider.php
/**
* @param \Spryker\Zed\Kernel\Container $container
*
* @return \Spryker\Zed\OmsExtension\Dependency\Plugin\OmsOrderMailExpanderPluginInterface[]
*/
protected function getOmsOrderMailExpanderPlugins(Container $container)
{
return [
...
new BccOrderMailExpanderPlugin(),
];
}
Add BCC mail addresses in you config
// ---------- OrderConfirmation in BCC to
$config[MailBccConstants::MAIL_BCC_ORDER] = [
'bccaddress@mail.com' => 'Name',
];