Redirects all email to a single recipient.

package Swift
subpackage Plugins
author Fabien Potencier

 Methods

Create a new RedirectingPlugin.

__construct(int $recipient) 

Parameters

$recipient

int

Invoked immediately before the Message is sent.

beforeSendPerformed(\Swift_Events_SendEvent $evt) 

Parameters

Get the recipient of all messages.

getRecipient() : int

Returns

int

Invoked immediately after the Message is sent.

sendPerformed(\Swift_Events_SendEvent $evt) 

Parameters

Set the recipient of all messages.

setRecipient($recipient) 

Parameters

$recipient

_restoreMessage()

_restoreMessage(\Swift_Mime_Message $message) 

Parameters

$message

 Properties

 

$_recipient : string
access private