< Manual:Hooks
UserMailerSplitTo | |
---|---|
Available from version 1.27.0 (Gerrit change 242791) Called in UserMailer::send() to give extensions a chance to split up an email with multiple of the To: field into separate emails. | |
Define function: | public static function onUserMailerSplitTo( array &$to ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"UserMailerSplitTo": "MyExtensionHooks::onUserMailerSplitTo"
}
}
|
Called from: | File(s): mail/UserMailer.php Function(s): send |
Interface: | UserMailerSplitToHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:UserMailerSplitTo extensions.
Details
&$to
: array of MailAddress objects; unset the ones which should be mailed separately
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.