MediaWiki REL1_35
MediaWiki\Hook\AlternateUserMailerHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\AlternateUserMailerHook:

Public Member Functions

 onAlternateUserMailer ( $headers, $to, $from, $subject, $body)
 This hook is called before mail is sent so that mail could be logged (or something else) instead of using PEAR or PHP's mail().
 

Detailed Description

Stable to implement.

Definition at line 11 of file AlternateUserMailerHook.php.

Member Function Documentation

◆ onAlternateUserMailer()

MediaWiki\Hook\AlternateUserMailerHook::onAlternateUserMailer (   $headers,
  $to,
  $from,
  $subject,
  $body 
)

This hook is called before mail is sent so that mail could be logged (or something else) instead of using PEAR or PHP's mail().

Since
1.35
Parameters
array$headersAssociative array of headers for the email
MailAddress | array$toTo address
MailAddress$fromFrom address
string$subjectSubject of the email
string$bodyBody of the message
Returns
bool|void True or no return value to continue sending email in the regular way, or false to skip the regular method of sending mail. Return a string to return a php-mail-error message containing the error.

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: