clippings / swiftmailer-observers
Assign bcc for specific email types globally
1.1.0
2020-02-14 09:38 UTC
Requires
- php: ^7.1
- swiftmailer/swiftmailer: ^5.0
Requires (Dev)
- phpunit/phpunit: ^7
This package is not auto-updated.
Last update: 2024-11-16 16:39:38 UTC
README
Assign bcc for specific email types globally
Installation
Install via composer
composer require clippings/swiftmailer-observers
Usage
$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);
License
Copyright (c) 2015, Clippings Ltd. Developed by Ivan Kerin
Under BSD-3-Clause license, read LICENSE file.