puerto_correo/lib.rs
1//! Puerto's mail runtime (ADR-0020): what every generated mail shares. A project declares one
2//! port per mail in its domain (`EnviadorCorreoBienvenida`); the implementation renders that mail's
3//! [`Plantillas`] and hands the [`puerto_nucleo::correo::Correo`] to a [`EnviadorCorreoSmtp`]. A worker consumer
4//! sends it through [`enviar_una_vez()`], so a redelivered event does not send it twice.
5
6pub mod config;
7pub mod enviar_una_vez;
8pub mod plantillas;
9#[cfg(any(test, feature = "pruebas"))]
10pub mod pruebas;
11pub mod smtp;
12
13pub use config::{ConfigCorreo, ErrorConfigCorreo};
14pub use enviar_una_vez::enviar_una_vez;
15pub use plantillas::Plantillas;
16pub use puerto_nucleo::correo::{Correo, CorreosEnviados, EnviadorCorreo, ErrorCorreo};
17pub use smtp::EnviadorCorreoSmtp;