|
MediaWiki master
|
Sends notification emails to the old address when a user changes or removes their email. More...
Public Member Functions | |
| __construct (private readonly ServiceOptions $options, private readonly IEmailer $emailer, private readonly BagOStuff $cache, private readonly UrlUtils $urlUtils) | |
| sendNotificationMail (IContextSource $ctx, User $recipientUser, string $change, string $newEmail='') | |
| Email the old address notifying about the email change. | |
Public Attributes | |
| const array | CONSTRUCTOR_OPTIONS |
Sends notification emails to the old address when a user changes or removes their email.
Used when the user previously had a confirmed email and is now changing it. The notification is sent to the old address to alert the user.
Definition at line 21 of file NotificationEmailSender.php.
| MediaWiki\Mail\NotificationEmail\NotificationEmailSender::__construct | ( | private readonly ServiceOptions | $options, |
| private readonly IEmailer | $emailer, | ||
| private readonly BagOStuff | $cache, | ||
| private readonly UrlUtils | $urlUtils ) |
Definition at line 28 of file NotificationEmailSender.php.
| MediaWiki\Mail\NotificationEmail\NotificationEmailSender::sendNotificationMail | ( | IContextSource | $ctx, |
| User | $recipientUser, | ||
| string | $change, | ||
| string | $newEmail = '' ) |
Email the old address notifying about the email change.
| IContextSource | $ctx | Request context (for IP, messages, etc.) |
| User | $recipientUser | The user whose email is being changed (recipient = their old address) |
| string | $change | Either 'changed' or 'removed' |
| string | $newEmail | The new email address (only used when $change === 'changed') |
Definition at line 46 of file NotificationEmailSender.php.
References MediaWiki\User\User\getName().
| const array MediaWiki\Mail\NotificationEmail\NotificationEmailSender::CONSTRUCTOR_OPTIONS |
Definition at line 23 of file NotificationEmailSender.php.