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 
57  public function send(
58  $to,
59  MailAddress $from,
60  string $subject,
61  string $bodyText,
62  ?string $bodyHtml = null,
63  array $options = []
64  ): StatusValue;
65 }
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:36
MWException
MediaWiki exception.
Definition: MWException.php:29
MediaWiki\Mail\IEmailer\send
send( $to, MailAddress $from, string $subject, string $bodyText, ?string $bodyHtml=null, array $options=[])
Sends emails to recipients.
MediaWiki\Mail\IEmailer
Interface for sending emails.
Definition: IEmailer.php:34