# Mail (Ruby)

> Pure-Ruby library for generating, parsing and sending email

Source: https://talira.ai/catalog/mail-ruby-ebpnjrjd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / email clients](https://talira.ai/categories/libraries/email-clients), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Mikel Lindsaar](https://talira.ai/orgs/mikel-lindsaar.md)

Mail is a pure-Ruby library for generating, parsing and sending email, built from its author's experience with TMail. It reads and writes RFC 5322 email, reads UTF-8 headers (RFC 6532), handles multipart MIME email (RFC 2045 to 2049) including multipart/alternative and multipart/report messages, and auto-encodes non-ASCII bodies and header fields. Network actions go through wrappers for Net::SMTP, Net::POP3 and files. It's the `mail` gem.

## Links

- GitHub: https://github.com/mikel/mail

## Problems it solves

- build a multipart email with text and HTML parts in Ruby
- parse incoming email messages in Ruby
- send email over SMTP from a Ruby script

## Features

- read and write RFC 5322 email; read UTF-8 headers (RFC 6532)
- multipart MIME email (RFC 2045 to 2049), including text and HTML alternatives
- read multipart/report messages and their details
- send and receive through Net::SMTP, Net::POP3 and file wrappers
- auto-encoding of non-US-ASCII bodies and header fields
- skips headers it doesn't understand instead of failing

## Limitations

- It parses US-ASCII and UTF-8 email but generates US-ASCII email, and some obsolete email syntax gives it problems.[^1]

## Trust

Overall: 0.42 out of 1.
Signals: maintenance 0.27, adoption 0.71, momentum 0.38, community 0.98, backing 0.30, extensibility 0.00.

- latest release 2.9.1 5 months ago
- 3.7k GitHub stars
- 273 contributors
- backed by Mikel Lindsaar

Warnings:

- last commit 5 months ago

## Sources

[^1]: https://github.com/mikel/mail/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/mikel/mail/blob/master/MIT-LICENSE (checked 28 Nov 2026)
