BeforeMailerSentMessageEvent

FinalYes

This event is fired before the Mailer has sent a message and allows listeners to manipulate the RawMessage and the Envelope.

Note: Usually TYPO3\CMS\Core\Mail\Mailer is given to the event. This implementation allows to retrieve the TransportInterface using the getTransport() method.

Table of Contents

Methods

__construct()  : mixed
getEnvelope()  : Envelope|null
getMailer()  : MailerInterface
getMessage()  : RawMessage
setEnvelope()  : void
setMessage()  : void

Methods

__construct()

public __construct(MailerInterface $mailer, RawMessage $message[, Envelope|null $envelope = null ]) : mixed
Parameters
$mailer : MailerInterface
$message : RawMessage
$envelope : Envelope|null = null

getEnvelope()

public getEnvelope() : Envelope|null
Return values
Envelope|null

getMailer()

public getMailer() : MailerInterface
Return values
MailerInterface

getMessage()

public getMessage() : RawMessage
Return values
RawMessage

setEnvelope()

public setEnvelope([Envelope|null $envelope = null ]) : void
Parameters
$envelope : Envelope|null = null

setMessage()

public setMessage(RawMessage $message) : void
Parameters
$message : RawMessage

        
On this page

Search results