MailSender
in package
Class Mail Sender Usage of PHPMailer
Tags
Table of Contents
- sendMail() : bool
- Send an email
Methods
sendMail()
Send an email
public
static sendMail(string $subject, string $body, array<string|int, mixed> $recipients[, bool $debug = false ]) : bool
Parameters
- $subject : string
-
subject of the mail
- $body : string
-
body of the mail
- $recipients : array<string|int, mixed>
-
list of recipients
- $debug : bool = false
-
at false. if true, show smtp transaction
Return values
bool —true if mail was sent, false otherwise (include empty config)