Documentation

SmtpHelper
in package

Smtp helper

Table of Contents

Methods

Send()  : void
Sends an email with the specified configuration and parameters.

Methods

Send()

Sends an email with the specified configuration and parameters.

public static Send(array<string|int, mixed> $configArray, string $address, string $subject, string $body[, array<string|int, mixed> $attachments = [] ]) : void
Parameters
$configArray : array<string|int, mixed>

An array containing email configuration settings.

$address : string

The recipient email address.

$subject : string

The email subject.

$body : string

The email body content.

$attachments : array<string|int, mixed> = []

An optional array of file attachments (default is an empty array).


        
On this page

Search results