class

Alumna::MemoryMailer

Inherits Alumna::Mailer < Reference < Object

In-process mailer. Use it in specs and in a single process that only records mail. Swap for Alumna::SES when the app must deliver.

send copies the message under a Sync::Mutex. delivered returns new copies. A change to a returned Mail, or to the Mail passed to send, does not change the store. This mailer never returns MailError.

Constructors

Instance methods

delivered

Copies of every message accepted by send, in send order.

Source
send(mail : Mail) : Nil
Source