Manual:Hooks/EmailUserCC

EmailUserCC
Available from version 1.17.0 (r64903)
Occurs before sending the copy of the email to the author
Define function:
public static function onEmailUserCC( &$to, &$from, &$subject, &$text ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"EmailUserCC": "MyExtensionHooks::onEmailUserCC"
	}
}
Called from:File(s): specials/SpecialEmailUser.php
Interface:EmailUserCCHook.php

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

DetailsEdit

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

See alsoEdit