Manual:Hooks/EmailUser
From MediaWiki.org
< Manual:Hooks(Redirected from Manual:MediaWiki hooks/EmailUser)
| EmailUser | |
|---|---|
| Available from version 1.4.0 Occurs whenever the software receives a request to send an email from one user to another |
|
*Define function: |
function fnMyHook(&$address, &$from, &$subject, &$text) { ... }
|
*Attach hook: |
$wgHooks['EmailUser'][] = 'fnMyHook'; |
| Called from: | SpecialEmailuser.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:EmailUser extensions.
[edit] Details
- $to: address of receiving user
- $from: address of sending user
- $subject: subject of the mail
- $text: text of the mail

