# gen_smtp

> SMTP client and server library for Erlang

Source: https://talira.ai/catalog/gen-smtp-x4sn6kdh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / email clients](https://talira.ai/categories/libraries/email-clients), [languages / erlang](https://talira.ai/categories/languages/erlang)
- Licence: BSD-2-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [gen-smtp](https://talira.ai/orgs/gen-smtp.md)

gen_smtp is an [Erlang](https://talira.ai/catalog/erlang-xsdkv450.md) 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.

## Links

- GitHub: https://github.com/gen-smtp/gen_smtp
- Docs: https://hexdocs.pm/gen_smtp/

## 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

## Trust

Overall: 0.41 out of 1.
Signals: maintenance 0.46, adoption 0.57, momentum 0.19, community 0.76, backing 0.30, extensibility 0.00.

- last commit 51 days ago
- 1 commits in the last 90 days
- latest release 1.3.0 18 months ago
- 721 GitHub stars
- 78 contributors
- backed by gen-smtp

## Alternatives

- [Swoosh](https://talira.ai/catalog/swoosh-kstmd7qf.md): Compose, deliver and test your emails easily in Elixir
- [Bamboo](https://talira.ai/catalog/bamboo-ef27vakx.md): Adapter-based email library for Elixir, with test helpers and Phoenix integration

## Sources

[^1]: https://github.com/gen-smtp/gen_smtp/blob/master/LICENSE (checked 29 Nov 2026)
