UserMailer::send()
to change email after it has gone through the MIME transform. Extensions can block sending the email by returning false and setting $error.
public static function onUserMailerTransformMessage( array $to, MailAddress $from, &$subject, &$headers, &$body, &$error ) { ... }Attach hook: In extension.json:
{ "Hooks": { "UserMailerTransformMessage": "MediaWiki\\Extension\\MyExtension\\Hooks::onUserMailerTransformMessage" } }Called from: File(s): UserMailer.php
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:UserMailerTransformMessage extensions.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4