File transport

Class for saving outgoing emails in filesystem

 Methods

Constructor

__construct(\Zend\Mail\Transport\FileOptions $options) 

Parameters

$options

null\Zend\Mail\Transport\FileOptions

OPTIONAL (Default: null)

Get the name of the last file written to

getLastFile() : string

Returns

string

Saves e-mail message to a file

send(\Zend\Mail\Message $message) : 

Parameters

Exceptions

\Zend\Mail\Transport\Exception\RuntimeException on not writable target directory or on file_put_contents() failure

Returns

Sets options

setOptions(\Zend\Mail\Transport\FileOptions $options) 

Parameters

 Properties

 

Last file written to

$lastFile : string

 

$options

$options : \Zend\Mail\Transport\FileOptions