MailerAdapterInterface

interface \TYPO3\CMS\Core\Mail\MailerAdapterInterface

Mailer Adapter interface

Table of Contents

Methods

mail()  : bool
Mail sending function

Methods

mail()

Mail sending function

public mail(string $to, string $subject, string $messageBody[, array $additionalHeaders = null ][, array $additionalParameters = null ][, bool $fakeSending = false ]) : bool

Parameters

$to : string

Mail recipient.

$subject : string

Mail subject.

$messageBody : string

Mail body.

$additionalHeaders : array = null

Additional mail headers.

$additionalParameters : array = null

Additional mailer parameters.

$fakeSending : bool = false

Whether to fake sending or not, used in Unit Tests.

Return values

bool —

TRUE if the mail was successfully sent, FALSE otherwise.

On this page