fond-of-oryx/mail-bcc

Spryker Mail BCC Module.

2.0.0 2023-01-20 14:07 UTC

This package is auto-updated.

Last update: 2024-11-27 13:03:10 UTC


README

license

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',
];