Craft Emails (2.x)

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()  : bool
_send()  : bool
Do the actual sending

Constants

Properties

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
inheritDoc
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) : bool
Parameters
$message : mixed
Tags
inheritdoc
Return values
bool

_send()

Do the actual sending

private _send(Message $message) : bool
Parameters
$message : Message
Return values
bool

Search results