A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Hooks/UserMailerTransformMessage below:

Manual:Hooks/UserMailerTransformMessage - MediaWiki

UserMailerTransformMessage Available from version 1.27.0 (Gerrit change 242791)
Called in 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.
Define function:
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
Function(s): sendInternal Interface: UserMailerTransformMessageHook.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