talira

gen_smtp

SMTP client and server library for Erlang

open sourceBSD-2-Clausefree

gen_smtp is an Erlang library with a generic SMTP server you extend through OTP-style callback modules, plus a pure Erlang SMTP client, for sending and receiving email without POP or IMAP. Both support PLAIN, LOGIN and CRAM-MD5 authentication, STARTTLS and SSL on port 465, and it includes a MIME encoder and decoder. It isn't a complete mail server, but has most of the parts to build one; Zotonic and Chicago Boss use it.

Problems it solves

  • send email over SMTP from Elixir or Erlang
  • receive inbound email in an Erlang app
  • build a custom SMTP server on the BEAM

Features

  • extensible SMTP server with callback modules
  • pure Erlang SMTP client
  • PLAIN, LOGIN and CRAM-MD5 auth
  • STARTTLS and SSL
  • MIME encoding and decoding
  • IPv6 on the server side

Alternatives

The same job

These do what gen_smtp does.

  1. Swoosh Compose, deliver and test your emails easily in Elixir
  2. Bamboo Adapter-based email library for Elixir, with test helpers and Phoenix integration

Compare gen_smtp with the top 3