TestMailer
class TestMailer implements Mailer (View source)
Methods
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)
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.