MediaWiki  master
IEmailer.php
Go to the documentation of this file.
1 <?php
21 namespace MediaWiki\Mail;
22 
23 use Exception;
24 use MailAddress;
25 use MWException;
26 use StatusValue;
27 
34 interface IEmailer {
35 
59  public function send(
60  array $to,
61  MailAddress $from,
62  string $subject,
63  string $bodyText,
64  ?string $bodyHtml = null,
65  array $options = []
66  ): StatusValue;
67 }
MediaWiki\Mail\IEmailer\send
send(array $to, MailAddress $from, string $subject, string $bodyText, ?string $bodyHtml=null, array $options=[])
Sends emails to recipients.
StatusValue
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: StatusValue.php:43
MediaWiki\Mail
Definition: Emailer.php:21
MailAddress
Stores a single person's name and email address.
Definition: MailAddress.php:34
MWException
MediaWiki exception.
Definition: MWException.php:29
MediaWiki\Mail\IEmailer
Interface for sending emails.
Definition: IEmailer.php:34