Class InMemory

Summary

Fully Qualified Name: Zend\Mail\Transport\InMemory
Implements: TransportInterface

Description

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.

Methods

Name Description Defined By
getLastMessage() Get the last message sent. InMemory
send() Takes the last message and saves it for testing. InMemory

Method Details

getLastMessage()

Get the last message sent.

Returns: \Message

send()

Takes the last message and saves it for testing.

Parameter Name Type Description
$message \Message

Returns:

Top