TransportFactory

readonly class \TYPO3\CMS\Core\Mail\TransportFactory

Table of Contents

Constants

SPOOL_FILE  : mixed = 'file'
SPOOL_MEMORY  : mixed = 'memory'

Properties

$dispatcher  : EventDispatcherInterface
$logManager  : LogManagerInterface

Methods

__construct()  : mixed
get()  : TransportInterface
createSpool()  : DelayedTransportInterface
Creates a spool from mail settings.

Constants

SPOOL_FILE

public mixed SPOOL_FILE = 'file'

SPOOL_MEMORY

public mixed SPOOL_MEMORY = 'memory'

Properties

$dispatcher

protected EventDispatcherInterface $dispatcher

Methods

get()

public get(array $mailSettings) : TransportInterface

Parameters

$mailSettings : array

Typically from $GLOBALS['TYPO3_CONF_VARS']['MAIL']

Tags

throws
Exception

Return values

TransportInterface
On this page