EmailLoginNotification implements LoggerAwareInterface uses LoggerAwareTrait
FinalYes
Sends out an email if a backend user has just been logged in.
Relevant settings: $GLOBALS['TYPO3_CONF_VARS']['BE']['warning_mode'] $GLOBALS['TYPO3_CONF_VARS']['BE']['warning_email_addr'] $BE_USER->uc['emailMeAtLogin']
this is not part of TYPO3 API as this is an internal hook
Table of Contents
Interfaces
- LoggerAwareInterface
Methods
- __construct() : mixed
- emailAtLogin() : void
- Sends an email notification to warning_email_address and/or the logged-in user's email address.
- sendEmail() : void
- Sends an email.
Methods
__construct()
public
__construct(MailerInterface $mailer) : mixed
Parameters
- $mailer : MailerInterface
emailAtLogin()
Sends an email notification to warning_email_address and/or the logged-in user's email address.
public
emailAtLogin(AfterUserLoggedInEvent $event) : void
Parameters
- $event : AfterUserLoggedInEvent
Attributes
- #[AsEventListener]
- 'typo3/cms-backend/login-notification'
sendEmail()
Sends an email.
protected
sendEmail(string $recipient, AbstractUserAuthentication $user[, string|null $subjectPrefix = null ]) : void
Parameters
- $recipient : string
- $user : AbstractUserAuthentication
- $subjectPrefix : string|null = null