Class Swift_MemorySpool

InheritanceSwift_MemorySpool
ImplementsSwift_Spool

Stores Messages in memory.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$messages Swift_MemorySpool

Public Methods

Hide inherited methods

MethodDescriptionDefined By
flushQueue() Sends messages using the given transport instance. Swift_MemorySpool
isStarted() Tests if this Transport mechanism has started. Swift_MemorySpool
queueMessage() Stores a message in the queue. Swift_MemorySpool
start() Starts this Transport mechanism. Swift_MemorySpool
stop() Stops this Transport mechanism. Swift_MemorySpool

Property Details

$messages protected property
protected $messages = []

Method Details

flushQueue() public method

Sends messages using the given transport instance.

public int flushQueue ( Swift_Transport $transport, <b>&</b>$failedRecipients null )
$transport Swift_Transport

A transport instance

$failedRecipients string[]

An array of failures by-reference

return int

The number of sent emails

isStarted() public method

Tests if this Transport mechanism has started.

public bool isStarted ( )
queueMessage() public method

Stores a message in the queue.

public bool queueMessage ( Swift_Mime_Message $message )
$message Swift_Mime_Message

The message to store

return bool

Whether the operation has succeeded

start() public method

Starts this Transport mechanism.

public void start ( )
stop() public method

Stops this Transport mechanism.

public void stop ( )