class TestMailer implements Mailer (View source)

Properties

protected deprecated array $emailsSent

Methods

public
bool
send(Email $email)

No description

protected
saveEmail(array $data) deprecated

Save a single email to the log

public
clearEmails()

Clear the log of emails sent

public
array|null
findEmail(string $to, string $from = null, string $subject = null, string $content = null)

Search for an email that was sent.

Details

bool send(Email $email)

No description

Parameters

Email $email

Return Value

bool

protected saveEmail(array $data) deprecated

deprecated 4.13.0 Will be removed without equivalent functionality to replace it

Save a single email to the log

Parameters

array $data

A map of information about the email

clearEmails()

Clear the log of emails sent

array|null findEmail(string $to, string $from = null, string $subject = null, string $content = null)

Search for an email that was sent.

All of the parameters can either be a string, or, if they start with "/", a PREG-compatible regular expression.

Parameters

string $to
string $from
string $subject
string $content

Return Value

array|null

Contains keys: 'Type', 'To', 'From', 'Subject', 'Content', 'PlainContent', 'AttachedFiles', 'HtmlContent'