Interface for spools.

package Swift
author Fabien Potencier

 Methods

Sends messages using the given transport instance.

flushQueue(\Swift_Transport $transport, string[] $failedRecipients) : int

Parameters

$transport

\Swift_Transport

A transport instance

$failedRecipients

string[]

&$failedRecipients An array of failures by-reference

Returns

intThe number of sent emails

Tests if this Spool mechanism has started.

isStarted() : boolean

Returns

boolean

Queues a message.

queueMessage(\Swift_Mime_Message $message) : boolean

Parameters

$message

\Swift_Mime_Message

The message to store

Returns

booleanWhether the operation has succeeded

Starts this Spool mechanism.

start() 

Stops this Spool mechanism.

stop()