MediaWiki REL1_35
IEmailer.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Mail;
22
23use Exception;
24use MailAddress;
25use MWException;
26use StatusValue;
27
34interface 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 exception.
Stores a single person's name and email address.
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Interface for sending emails.
Definition IEmailer.php:34
send(array $to, MailAddress $from, string $subject, string $bodyText, ?string $bodyHtml=null, array $options=[])
Sends emails to recipients.