MediaWiki master
IEmailer.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Mail;
22
23use MailAddress;
24use StatusValue;
25
35interface IEmailer {
36
55 public function send(
56 $to,
57 MailAddress $from,
58 string $subject,
59 string $bodyText,
60 ?string $bodyHtml = null,
61 array $options = []
62 ): StatusValue;
63}
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:35
send( $to, MailAddress $from, string $subject, string $bodyText, ?string $bodyHtml=null, array $options=[])
Sends emails to recipients.