MediaWiki master
IEmailer.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Mail;
8
10
20interface IEmailer {
21
40 public function send(
41 $to,
42 MailAddress $from,
43 string $subject,
44 string $bodyText,
45 ?string $bodyHtml = null,
46 array $options = []
47 ): StatusValue;
48}
Represent and format a single name and email address pair for SMTP.
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Interface for sending arbitrary emails.
Definition IEmailer.php:20
send( $to, MailAddress $from, string $subject, string $bodyText, ?string $bodyHtml=null, array $options=[])
Sends emails to recipients.