bamboo v0.8.0 Bamboo.LocalAdapter

Stores emails locally. Can be queried to see sent emails.

Use this adapter for storing emails locally instead of sending them. Emails are stored and can be read from Bamboo.SentEmail. Typically this adapter is used in the dev environment so emails are not delivered to real email addresses.

You can use this adapter along with Bamboo.EmailPreviewPlug to view emails in the browser.

Example config

# In config/config.exs, or config/dev.exs, etc.
config :my_app, MyApp.Mailer,
  adapter: Bamboo.LocalAdapter

# Define a Mailer. Maybe in lib/my_app/mailer.ex
defmodule MyApp.Mailer do
  use Bamboo.Mailer, otp_app: :my_app



Adds email to Bamboo.SentEmail


deliver(email, config)

Adds email to Bamboo.SentEmail


Callback implementation for Bamboo.Adapter.handle_config/1.