bamboo v0.3.2 Bamboo.SentEmail

Used for storing and retrieving sent emails when used with Bamboo.LocalAdapter

When emails are sent with the Bamboo.LocalAdapter, they are stored in Bamboo.SentEmail. Use the following function to store and retrieve the emails. Remember to start the Bamboo app by adding it to the app list in mix.exs or starting it with Application.ensure_all_started(:bamboo)

Summary

Functions

Returns a list of all sent emails

Returns exactly one sent email

Adds an email to the list of sent emails

Clears all sent emails

Starts the SentEmail Agent

Functions

all()

Returns a list of all sent emails

one()

Returns exactly one sent email

Raises NoDeliveriesError if there are no emails. Raises DeliveriesError if there are 2 or more emails.

push(email)

Adds an email to the list of sent emails

reset()

Clears all sent emails

start_link()

Starts the SentEmail Agent