'AlternateUserMailer': Called before mail is sent so that mail could
be logged (or something else) instead of using PEAR or SMTP
-$UserMailer: the EditPage object
$headers: Associative array of headers for the email
$to: MailAddress object or array
$from: From address
$headers['X-Mailer'] = 'MediaWiki mailer';
$headers['From'] = $from->toString();
- $ret = wfRunHooks( 'AlternateUserMailer', array( $this, $headers, $to, $from, $subject, $body, $replyto, $contentType ) );
+ $ret = wfRunHooks( 'AlternateUserMailer', array( $headers, $to, $from, $subject, $body, $replyto, $contentType ) );
if ( $ret === false ) {
return Status::newGood();
} else if ( $ret != true ) {