horde/mail

Mail library

v3.0.0 2026-06-26 00:00 UTC

Requires

Requires (Dev)

Suggests

Provides

None

Conflicts

None

Replaces

None

BSD-2-Clause eddaaf550db1bda8b905eed56a6bc46c83268917

  • Michael Slusarz <slusarz.woop@horde.org>

smtp


README

Email address parsing (RFC 5322), mail transport, and mbox parsing (RFC 4155).

Part of the Horde framework.

Installation

composer require horde/mail

Upgrading

See doc/UPGRADING.md for API changes between releases and a full migration guide from the legacy lib/ classes to the modern src/ API.

Collaborator libraries

Package Role
horde/stream Typed stream wrappers (StreamInterface, Temp) used by transports and mbox parser
horde/smtp SMTP/LMTP protocol client used by SmtpTransport and LmtpTransport (optional)
horde/eventdispatcher PSR-14 event dispatcher for parser observability
horde/idna Internationalized domain name encoding
horde/mime MIME header encoding/decoding (legacy lib/ dependency)
horde/socket_client TCP socket abstraction used by horde/smtp (optional)

Relevant RFCs

  • RFC 5322 — Internet Message Format (address syntax)
  • RFC 6532 — Internationalized Email Headers (EAI)
  • RFC 2047 — MIME Message Header Extensions (encoded words)
  • RFC 4155 — The application/mbox Media Type
  • RFC 5321 — Simple Mail Transfer Protocol

License

BSD-2-Clause. See LICENSE.