Manual:Hooks/EmailUserComplete

From MediaWiki.org
Jump to: navigation, search
EmailUserComplete
Available from version 1.4.0
Occurs after an email has been sent from one user to another

*Define function:
function fnMyHook( &$address, &$from, &$subject, &$text ) { ... }

*Attach hook:
$wgHooks['EmailUserComplete'][] = 'MyExtensionHooks::someExample';
Called from: SpecialEmailuser.php

*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:EmailUserComplete extensions.


[edit] Details

  • $to: address of receiving user
  • $from: address of sending user
  • $subject: subject of the mail
  • $text: text of the mail

[edit] See also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox