Mailer
in package
implements
MailerInterface
Tags
Interfaces, Classes and Traits
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
Return values
string —filterFromEmail()
Filters the from address for outgoing emails.
public
filterFromEmail(string $fromEmail) : string
Parameters
- $fromEmail : string
Tags
Return values
string —filterFromName()
Filters the from name for outgoing emails.
public
filterFromName(string $fromName) : string
Parameters
- $fromName : string
Tags
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.