Stores Messages in a queue.

package Swift
author Fabien Potencier

 Methods

Constructor.

__construct(\Swift_Events_EventDispatcher $eventDispatcher, \Swift_Spool $spool) 

Parameters

$eventDispatcher

$spool

Get the spool object.

getSpool() : \Swift_Spool

Returns

Tests if this Transport mechanism has started.

isStarted() : boolean

Returns

boolean

Register a plugin.

registerPlugin(\Swift_Events_EventListener $plugin) 

Parameters

Sends the given message.

send(\Swift_Mime_Message $message, string[] $failedRecipients) : int

Recipient/sender data will be retrieved from the Message API. The return value is the number of recipients who were accepted for delivery.

Parameters

$failedRecipients

string[]

&$failedRecipients to collect failures by-reference

Returns

intThe number of sent emails

Sets the spool object.

setSpool(\Swift_Spool $spool) : \Swift_Transport_SpoolTransport

Parameters

$spool

\Swift_Spool

Returns

Starts this Transport mechanism.

start() 

Stops this Transport mechanism.

stop() 

 Properties

 

$_eventDispatcher 
 

$_spool