MediaWiki REL1_40
MediaWiki\Mail\IEmailer Interface Reference

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.
 

Detailed Description

Interface for sending emails.

Since
1.35
Access: internal

Definition at line 34 of file IEmailer.php.

Member Function Documentation

◆ send()

MediaWiki\Mail\IEmailer::send ( $to,
MailAddress $from,
string $subject,
string $bodyText,
?string $bodyHtml = null,
array $options = [] )

Sends emails to recipients.

Since
1.35
Parameters
MailAddress | MailAddress[]$toArray of Recipients' emails
MailAddress$fromSender's email
string$subjectEmail's subject.
string$bodyTexttext part of body
string | null$bodyHtmlhtml part of body (optional)
array$optionsKeys: 'replyTo' MailAddress 'contentType' string default 'text/plain; charset=UTF-8' 'headers' array Extra headers to set
Exceptions
MWException
Exception
Returns
StatusValue

Implemented in MediaWiki\Mail\Emailer.


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