MediaWiki REL1_41
|
Interface for sending emails. More...
Inherited by MediaWiki\Mail\Emailer.
Public Member Functions | |
send ( $to, MailAddress $from, string $subject, string $bodyText, ?string $bodyHtml=null, array $options=[]) | |
Sends emails to recipients. | |
Interface for sending emails.
Definition at line 32 of file IEmailer.php.
MediaWiki\Mail\IEmailer::send | ( | $to, | |
MailAddress | $from, | ||
string | $subject, | ||
string | $bodyText, | ||
?string | $bodyHtml = null, | ||
array | $options = [] ) |
Sends emails to recipients.
MailAddress | MailAddress[] | $to | Array of Recipients' emails |
MailAddress | $from | Sender's email |
string | $subject | Email's subject. |
string | $bodyText | text part of body |
string | null | $bodyHtml | html part of body (optional) |
array | $options | Keys: 'replyTo' MailAddress 'contentType' string default 'text/plain; charset=UTF-8' 'headers' array Extra headers to set |
Implemented in MediaWiki\Mail\Emailer.