talira

Adapter-based email library for Elixir, with test helpers and Phoenix integration

open sourceMITfree

Bamboo is an Elixir library for building and sending email. Emails are created, changed and sent with plain functions, and delivery goes through adapters: it ships adapters for Mandrill, Mailgun and SendGrid, community adapters cover other services, and you can write your own. deliver_later sends in the background, test helpers let you assert on email fields without delivering anything, a local in-memory adapter and a plug let you view sent mail during development, and it uses Phoenix views and layouts for rendering. thoughtbot created it; the BEAM Community maintains it now. It isn't Atlassian's Bamboo CI server.

Problems it solves

  • send transactional email from my Elixir app through Mailgun or SendGrid
  • test that my Phoenix app sends the right emails without delivering them
  • preview emails my Elixir app sends while developing

Features

  • delivery adapters for Mandrill, Mailgun and SendGrid, plus community and custom adapters
  • deliver_later for background sending
  • test helpers that assert on email fields without delivering
  • an in-memory local adapter and a plug to view sent emails in development
  • Phoenix views and layouts for rendering emails

Limitations

  • The README on GitHub follows the main branch, which may not be the published version; the published version's docs are on HexDocs.1

Alternatives

The same job

These do what Bamboo does.

  1. Swoosh Compose, deliver and test your emails easily in Elixir
  2. gen_smtp SMTP client and server library for Erlang

Compare Bamboo with the top 3