clippings / swiftmailer-modify
Modify the subject of all emails
Installs: 90 370
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 25
Forks: 0
Open Issues: 1
Requires
- php: ^7.1
- swiftmailer/swiftmailer: ^5.0
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-11-17 18:53:50 UTC
README
Modify all emails before sending
Installation
Install via composer
composer require clippings/swiftmailer-modify
Usage
This will add a "[Test]" prefix in a testing environment for every message
if ($environment === 'testing') { $mailer->registerPLugin(new ModifyPlugin(function(Swift_Message $message) { $message->setSubject('[Test] '.$message->getSubject()); })); }
License
Copyright (c) 2015, Clippings Ltd. Developed by Ivan Kerin
Under BSD-3-Clause license, read LICENSE file.