Stub class for backwards compatibility.

Since PHP 7 adds "null" as a reserved keyword, we can no longer have a class named that and retain PHP 7 compatibility. The original class has been renamed to "InMemory", and this class is now an extension of it. It raises an E_USER_DEPRECATED to warn users to migrate.

deprecated
package Default
inherited_from \Zend\Mail\Transport\InMemory

 Methods

__construct()

__construct() 

Get the last message sent.

getLastMessage() : \Zend\Mail\Message
Inherited

Returns

\Zend\Mail\Message

Takes the last message and saves it for testing.

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

Parameters

$message

\Zend\Mail\Message

 Properties

 

$lastMessage

$lastMessage : \Zend\Mail\Message

Default