Class Swift_Plugins_RedirectingPlugin
Inheritance | Swift_Plugins_RedirectingPlugin |
---|---|
Implements | Swift_Events_SendListener |
Redirects all email to a single recipient.
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Create a new RedirectingPlugin. | Swift_Plugins_RedirectingPlugin |
beforeSendPerformed() | Invoked immediately before the Message is sent. | Swift_Plugins_RedirectingPlugin |
getRecipient() | Get the recipient of all messages. | Swift_Plugins_RedirectingPlugin |
getWhitelist() | Get the whitelist. | Swift_Plugins_RedirectingPlugin |
sendPerformed() | Invoked immediately after the Message is sent. | Swift_Plugins_RedirectingPlugin |
setRecipient() | Set the recipient of all messages. | Swift_Plugins_RedirectingPlugin |
setWhitelist() | Set a list of regular expressions to whitelist certain recipients. | Swift_Plugins_RedirectingPlugin |
Protected Methods
Method | Description | Defined By |
---|---|---|
_isWhitelisted() | Matches address against whitelist of regular expressions. | Swift_Plugins_RedirectingPlugin |
Method Details
Create a new RedirectingPlugin.
public void __construct ( $recipient, array $whitelist = [] ) | ||
$recipient | mixed | |
$whitelist | array |
Matches address against whitelist of regular expressions.
protected bool _isWhitelisted ( $recipient ) | ||
$recipient |
Invoked immediately before the Message is sent.
public void beforeSendPerformed ( Swift_Events_SendEvent $evt ) | ||
$evt | Swift_Events_SendEvent |
Get the recipient of all messages.
public mixed getRecipient ( ) |
Get the whitelist.
public array getWhitelist ( ) |
Invoked immediately after the Message is sent.
public void sendPerformed ( Swift_Events_SendEvent $evt ) | ||
$evt | Swift_Events_SendEvent |
Set the recipient of all messages.
public void setRecipient ( $recipient ) | ||
$recipient | mixed |
Set a list of regular expressions to whitelist certain recipients.
public void setWhitelist ( array $whitelist ) | ||
$whitelist | array |