3 namespace MediaWiki\Hook
;
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "UserMailerTransformMessage" to register handlers implementing this interface.
11 * @stable to implement
14 interface UserMailerTransformMessageHook
{
16 * This hook is called in UserMailer::send() to change email after
17 * it has gone through the MIME transform.
21 * @param MailAddress[] $to Array of addresses of the targets
22 * @param MailAddress $from Address of the sender
23 * @param string &$subject Email subject (not MIME encoded)
24 * @param array &$headers Email headers (except To: and Subject:) as an array of header
26 * @param string &$body email body (in MIME format)
27 * @param string &$error Error message
28 * @return bool|void True or no return value to continue, or false and set $error to
29 * block sending the email
31 public function onUserMailerTransformMessage( $to, $from, &$subject, &$headers,