Skip to content

About

Assign bcc for specific email types globally

Resources

Contributing

Stars

1 star

Watchers

24 watching

Forks

Repository files navigation

Swiftmailer Observers

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version

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.

About

Assign bcc for specific email types globally

Resources

Contributing

Stars

1 star

Watchers

24 watching

Forks

Releases

Packages

Used by

Contributors

Languages