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.

package Default

 Methods

Get the last message sent.

getLastMessage() : \Zend\Mail\Message

Returns

\Zend\Mail\Message

Takes the last message and saves it for testing.

send(\Zend\Mail\Message $message) 
inherited_from \Zend\Mail\Transport\TransportInterface::send()

Parameters

$message

\Zend\Mail\Message

 Properties

 

$lastMessage

$lastMessage : \Zend\Mail\Message

Default