SenderDefaults
final readonly class \
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
Methods
- __construct() : mixed
- fromMailSettings() : self
Properties
$from
public
Address
$from
$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