clippings/swiftmailer-observers

全局分配特定电子邮件类型的Bcc

1.1.0 2020-02-14 09:38 UTC

This package is not auto-updated.

Last update: 2024-09-21 15:53:29 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version

全局分配特定电子邮件类型的Bcc

安装

通过composer安装

composer require clippings/swiftmailer-observers

使用方法

$mailer->registerPLugin(new ObserversPlugin([
    'test@example.com' => [
        'event1',
        'event2',
    ]
]));

$headers = $message->getHeaders();
$headers->addTextHeader(ObserversPlugin::HEADER, 'event1');

// Will add 'test@example.com' to bcc
$mailer->send($message);

许可协议

版权所有(c)2015,Clippings Ltd。由Ivan Kerin开发

在BSD-3-Clause许可下,请参阅LICENSE文件。