Class Swift_Transport_SpoolTransport


Stores Messages in a queue.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor. Swift_Transport_SpoolTransport
getSpool() Get the spool object. Swift_Transport_SpoolTransport
isStarted() Tests if this Transport mechanism has started. Swift_Transport_SpoolTransport
registerPlugin() Register a plugin. Swift_Transport_SpoolTransport
send() Sends the given message. Swift_Transport_SpoolTransport
setSpool() Sets the spool object. Swift_Transport_SpoolTransport
start() Starts this Transport mechanism. Swift_Transport_SpoolTransport
stop() Stops this Transport mechanism. Swift_Transport_SpoolTransport

Method Details

__construct() public method


public void __construct ( Swift_Events_EventDispatcher $eventDispatcher, Swift_Spool $spool null )
getSpool() public method

Get the spool object.

public Swift_Spool getSpool ( )
isStarted() public method

Tests if this Transport mechanism has started.

public bool isStarted ( )
registerPlugin() public method

Register a plugin.

public void registerPlugin ( Swift_Events_EventListener $plugin )
$plugin Swift_Events_EventListener
send() public method

Sends the given message.

public int send ( Swift_Mime_Message $message, <b>&</b>$failedRecipients null )
$message Swift_Mime_Message
$failedRecipients string[]

An array of failures by-reference

return int

The number of sent e-mail's

setSpool() public method

Sets the spool object.

public Swift_Transport_SpoolTransport setSpool ( Swift_Spool $spool )
$spool Swift_Spool
start() public method

Starts this Transport mechanism.

public void start ( )
stop() public method

Stops this Transport mechanism.

public void stop ( )