EmailerService
extends Mailer
in package
Table of Contents
- EVENT_BEFORE_PREP = 'beforePrep'
- $parentMailer : mixed
- afterSend() : mixed
- resend() : bool
- Resend a message without going through the process of rebuilding html and all other parameters in case those parameters have changed since the email was sent.
- send() : mixed
- _send() : bool
- Do the actual sending
Constants
EVENT_BEFORE_PREP
public
mixed
EVENT_BEFORE_PREP
= 'beforePrep'
Properties
$parentMailer
public
mixed
$parentMailer
Methods
afterSend()
public
afterSend(Message $message, bool $isSuccessful[, array<string|int, mixed>|null $attachements = null ]) : mixed
Parameters
- $message : Message
- $isSuccessful : bool
- $attachements : array<string|int, mixed>|null = null
Tags
Return values
mixed —resend()
Resend a message without going through the process of rebuilding html and all other parameters in case those parameters have changed since the email was sent.
public
resend(string $key, string $subject, string $textBody, string $htmlBody, array<string|int, mixed> $from, array<string|int, mixed> $replyTo, array<string|int, mixed> $bcc, array<string|int, mixed> $cc, array<string|int, mixed> $to, array<string|int, mixed> $attachements) : bool
Parameters
- $key : string
- $subject : string
- $textBody : string
- $htmlBody : string
- $from : array<string|int, mixed>
- $replyTo : array<string|int, mixed>
- $bcc : array<string|int, mixed>
- $cc : array<string|int, mixed>
- $to : array<string|int, mixed>
- $attachements : array<string|int, mixed>
Return values
bool —send()
public
send(mixed $message) : mixed
Parameters
- $message : mixed
Tags
Return values
mixed —_send()
Do the actual sending
private
_send(Message $message) : bool
Parameters
- $message : Message