MediaWiki REL1_41
EmailUserSendEmailHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Mail\Hook;
4
9
31 public function onEmailUserSendEmail(
32 Authority $from,
33 MailAddress $fromAddress,
35 MailAddress $toAddress,
36 string $subject,
37 string $text,
38 StatusValue $status
39 );
40}
Stores a single person's name and email address.
Generic operation result class Has warning/error list, boolean status and arbitrary value.
This is a hook handler interface, see docs/Hooks.md.
onEmailUserSendEmail(Authority $from, MailAddress $fromAddress, UserEmailContact $to, MailAddress $toAddress, string $subject, string $text, StatusValue $status)
This hook is called before sending an email, when all other checks have succeeded.
This interface represents the authority associated the current execution context, such as a web reque...
Definition Authority.php:37