Mailer
in package
implements MailerInterface

Tags
since
1.1.0

Interfaces, Classes and Traits

MailerInterface

Table of Contents

filterContentType()  : string
Filters the email content type.
filterFromEmail()  : string
Filters the from address for outgoing emails.
filterFromName()  : string
Filters the from name for outgoing emails.
send()  : bool

Methods

filterContentType()

Filters the email content type.

public filterContentType(string $contentType) : string
Parameters
$contentType : string
Tags
since
1.1.0
Return values
string

filterFromEmail()

Filters the from address for outgoing emails.

public filterFromEmail(string $fromEmail) : string
Parameters
$fromEmail : string
Tags
since
1.1.0
Return values
string

filterFromName()

Filters the from name for outgoing emails.

public filterFromName(string $fromName) : string
Parameters
$fromName : string
Tags
since
1.1.0
Return values
string

send()

public send(string|array<string|int, mixed> $to, string $subject, string $message[, array<string|int, mixed>|string|null $headers = null ][, array<string|int, mixed>|string $attachments = null ]) : bool
Parameters
$to : string|array<string|int, mixed>

Array or comma-separated list of email addresses to send message.

$subject : string
$message : string
$headers : array<string|int, mixed>|string|null = null

Optional. Additional headers. Null by default.

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

Optional. Files to attach.

Tags
since
1.1.0
Return values
bool

Search results