Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

forge-mvc-mail

Opt-in Forge pour l'envoi d'emails. Extrait du core (ADR-022) : le core ne contient que les primitives générales ; l'email est une brique spécialisée, optionnelle.

Contenu

  • MailMessage : composition d'un message (destinataires, sujet, texte, HTML).
  • Transports interchangeables : ConsoleTransport (affichage), SmtpTransport (SMTP réel), LogTransport, NullTransport, FakeTransport (tests).
  • MailTemplateRenderer : rendu de templates d'email via Jinja2.
  • Mailer : orchestration envoi + journalisation (MailLogger).
  • MailConfig : configuration depuis l'environnement.
  • CLI mail:init, mail:test, mail:render, mail:doctor, mail:logs.

Installation

pip install --pre forge-mvc-mail

Usage

from forge_mvc_mail import Mailer, MailMessage, ConsoleTransport

mailer = Mailer(transport=ConsoleTransport())
mailer.send(MailMessage(
    subject="Bienvenue",
    to="client@example.com",
    body_text="Merci de votre inscription.",
))

Le transport est interchangeable : ConsoleTransport (développement), SmtpTransport (SMTP réel), LogTransport, FakeTransport (tests). En production, MailConfig lit la configuration SMTP depuis l'environnement.

Le parcours pédagogique welcome-mail (documentation docs/starters/welcome-mail/) montre l'usage pas à pas.

Release files for forge-mvc-mail 1.0.0rc6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forge-mvc-mail 1.0.0rc6
File Size Uploaded
forge_mvc_mail-1.0.0rc6.tar.gz 29.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for forge-mvc-mail 1.0.0rc6
File Interpreter ABI Platform
forge_mvc_mail-1.0.0rc6-py3-none-any.whl Python 3 none any Details

Total release size: 48.9 kB

Release files / forge_mvc_mail-1.0.0rc6.tar.gz

Download URL forge_mvc_mail-1.0.0rc6.tar.gz
Size 29.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d9e3cfd91a327d7a4365753fd2c4c63b4b7270d7b637b00628ead7ba8d6ba353
BLAKE2b-256 checksum
How to use checksums
9810a5132f129c15bf196ecf06181e3a87a190ba3e20d7e50423fb7f26a1dc28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / forge_mvc_mail-1.0.0rc6-py3-none-any.whl

Download URL forge_mvc_mail-1.0.0rc6-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe0eda3a0fad8837a42c4f6ee8c61ce04f22a14871d2af94bb84ab83aa09963f
BLAKE2b-256 checksum
How to use checksums
76803433bb211fea0ac86305adc5c5b7c43c9e886709ef499b0399b5a6ea4634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page