class TestMailer implements Mailer (View source)

Methods

bool
send(Email $email)

No description

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.

Details

bool send(Email $email)

Parameters

Email $email

Return Value

bool

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'