File transport

Class for saving outgoing emails in filesystem

package Default

 Methods

Constructor

__construct(null|\Zend\Mail\Transport\FileOptions $options = null

Parameters

$options

null\Zend\Mail\Transport\FileOptions

OPTIONAL (Default: null)

Get the name of the last file written to

getLastFile() : string

Returns

string

getOptions()

getOptions() : \Zend\Mail\Transport\FileOptions

Returns

\Zend\Mail\Transport\FileOptions

Saves e-mail message to a file

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

Parameters

$message

\Zend\Mail\Message

Exceptions

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

Sets options

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

Parameters

$options

\Zend\Mail\Transport\FileOptions

 Properties

 

Last file written to

$lastFile : string

Default

 

$options

$options : \Zend\Mail\Transport\FileOptions

Default