Base class for Spools (implements time and message limits).
Methods
Sends messages using the given transport instance.
flushQueue(\Swift_Transport $transport, string[] $failedRecipients) : int
Inherited
inherited_from |
\Swift_Spool::flushQueue() |
Parameters
$failedRecipients
string[]
&$failedRecipients An array of failures by-reference
Returns
int
The number of sent emails
Gets the maximum number of messages to send per flush.
getMessageLimit() : int
Gets the time limit (in seconds) per flush.
getTimeLimit() : int
Tests if this Spool mechanism has started.
isStarted() : boolean
Inherited
inherited_from |
\Swift_Spool::isStarted() |
Returns
boolean
Queues a message.
queueMessage(\Swift_Mime_Message $message) : boolean
Inherited
inherited_from |
\Swift_Spool::queueMessage() |
Parameters
Returns
boolean
Whether the operation has succeeded
Sets the maximum number of messages to send per flush.
setMessageLimit(int $limit)
Sets the time limit (in seconds) per flush.
setTimeLimit(int $limit)
Starts this Spool mechanism.
start()
Inherited
inherited_from |
\Swift_Spool::start() |
Stops this Spool mechanism.
stop()
Inherited
inherited_from |
\Swift_Spool::stop() |
Properties