Search by

semitexa / mail

syntaxwanderer

Semitexa Mail — outbound email transport with SMTP, queue-safe delivery, Twig rendering, and storage-backed attachments

Package info

github.com/semitexa/semitexa-mail

Type:semitexa-module

pkg:composer/semitexa/mail

Statistics

Installs: 467

Dependents: 2

Suggesters: 0

Stars: 1

Open Issues: 0

2026.10.08.0620 2026-10-08 09:16 UTC

README

Outbound email transport with SMTP, queue-safe delivery, Twig rendering, and storage-backed attachments.

Install

Included in every project created by the installer (https://semitexa.com/install.sh).

Purpose

Handles email composition and delivery. Supports multiple transport backends, MIME message construction with attachments from the storage layer, and Twig-based template rendering for rich email content.

Role in Semitexa

Depends on semitexa/core, semitexa/orm, semitexa/ssr, and semitexa/storage. Uses ORM for queue-safe persistence, SSR for Twig template rendering, and Storage for resolving attachment references to file content.

Key Features

  • SmtpMailTransport with TLS and authentication
  • FakeMailTransport and NullMailTransport for testing
  • MailTransportRegistry for multi-transport routing
  • MimeBuilder for standards-compliant MIME construction
  • Storage-backed attachments via semitexa/storage
  • Queue-safe message delivery

Worker

Queued mail is delivered by a dedicated worker that does not start with the web server:

bin/semitexa mail:work [transport] [queue]   # transport defaults from EVENTS_ASYNC, queue defaults to "mail"