MediaWiki REL1_39
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
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}
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( $to, MailAddress $from, string $subject, string $bodyText, ?string $bodyHtml=null, array $options=[])
Sends emails to recipients.