SenderDefaults

final readonly class \TYPO3\CMS\Core\Mail\SenderDefaults

The sender and reply-to addresses used for emails which do not define them.

Without a valid "defaultMailFromAddress", a no-reply address of the host name is used, and "no-reply@example.com" if the host name does not form a valid address either.

Table of Contents

Properties

$from  : Address
$replyTo  : Address|null

Methods

__construct()  : mixed
fromMailSettings()  : self

Properties

$replyTo

public Address|null $replyTo = null

Methods

__construct()

public __construct(Address $from[, Address|null $replyTo = null ]) : mixed

Parameters

$from : Address
$replyTo : Address|null = null

fromMailSettings()

public static fromMailSettings(array $mailSettings) : self

Parameters

$mailSettings : array

the global MAIL configuration or the settings of a mail profile

Return values

self
On this page