‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Mail\Event\AfterMailerSentMessageEvent Class Reference

Public Member Functions

 __construct (private MailerInterface $mailer)
 
 getMailer ()
 

Detailed Description

This event is fired once a Mailer has sent a message and allows listeners to execute further code afterwards, depending on the result, e.g. the SentMessage.

Note: Usually TYPO3\CMS\Core\Mail\Mailer is given to the event. This implementation allows to retrieve the SentMessage using the getSentMessage() method. Depending on the Transport, used to send the message, this might also be NULL.

Definition at line 30 of file AfterMailerSentMessageEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Mail\Event\AfterMailerSentMessageEvent::__construct ( private MailerInterface  $mailer)

Definition at line 32 of file AfterMailerSentMessageEvent.php.

Member Function Documentation

◆ getMailer()

TYPO3\CMS\Core\Mail\Event\AfterMailerSentMessageEvent::getMailer ( )

Definition at line 34 of file AfterMailerSentMessageEvent.php.