API / Minn\Mail / Smtp

Smtp final readonly class

Minn\Mail\Smtp · public/minn/src/Minn/Mail/Smtp.php · 33 lines

Delivery over SMTP for the engine's own mail when WordPress's mail function is not loaded: the site's server, SSL or STARTTLS, a sign-in when a user name is set, one message per connection, through the same SmtpSession the PHPMailer SMTP class speaks with.

Used by 1

Constants and properties

privatereadonly Minn\Mail\MailSettings $settings

Promoted from the constructor.

Public

new__construct(Minn\Mail\MailSettings $settings)#
methodsendRaw(string $from, array $recipients, string $data): bool#

Sends one composed message (headers, a blank line, the body) to the envelope recipients; false on any refusal.

$recipientslist<string>