Skip to content

OpenBuildings/swiftmailer-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swiftmailer Filter Plugin

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version

A swiftmailer plugin that allows whitelist / blacklist to which emails to perform the sends. This is useful for example when you want to allow emails only to a certain domain in testing / staging

Usage

$mailer = Swift_Mailer::newInstance();

$mailer->registerPLugin(new FilterPlugin([
    new WhiteListFilter(['example.com']),
    new BlacklistFilter(['[email protected], [email protected]'])
]));

First argument is whitelist filter, second is blacklist filter, they both allow array of emails or domain names. If you assign a domain, all emails from that domain will be whitelisted / blacklisted.

License

Copyright (c) 2015, Clippings Ltd. Developed by Ivan Kerin as part of clippings.com

Under BSD-3-Clause license, read LICENSE file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages