Fully Qualified Name: | Zend\Mail\Transport\InMemory |
Implements: | TransportInterface |
InMemory transport
This transport will just store the message in memory. It is helpful when unit testing, or to prevent sending email when in development or testing.
Name | Description | Defined By |
---|---|---|
getLastMessage() | Get the last message sent. | InMemory |
send() | Takes the last message and saves it for testing. | InMemory |
Get the last message sent.
Returns: \Message
Takes the last message and saves it for testing.
Parameter Name | Type | Description |
---|---|---|
$message | \Message |
Returns: