Class Swift_MemorySpool
| Inheritance | Swift_MemorySpool |
|---|---|
| Implements | Swift_Spool |
Stores Messages in memory.
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $messages | Swift_MemorySpool |
Public Methods
| Method | Description | Defined 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
Method Details
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 |
|---|---|---|
Tests if this Transport mechanism has started.
| public bool isStarted ( ) |
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 |
|---|---|---|
Starts this Transport mechanism.
| public void start ( ) |
Stops this Transport mechanism.
| public void stop ( ) |