missive 0.6.2

Compose, deliver, preview, and test emails in Rust - pluggable providers with zero configuration code
Documentation
//! Email provider implementations.
//!
//! Each provider implements the [`Mailer`](crate::Mailer) trait.
//!
//! ## Available Providers
//!
//! | Provider | Feature Flag | Description |
//! |----------|-------------|-------------|
//! | [`SmtpMailer`] | `smtp` | SMTP via lettre |
//! | [`ResendMailer`] | `resend` | Resend API |
//! | [`UnsentMailer`] | `unsent` | Unsent API |
//! | [`PostmarkMailer`] | `postmark` | Postmark API |
//! | [`SendGridMailer`] | `sendgrid` | SendGrid API |
//! | [`BrevoMailer`] | `brevo` | Brevo API (formerly Sendinblue) |
//! | [`MailgunMailer`] | `mailgun` | Mailgun API |
//! | [`AmazonSesMailer`] | `amazon_ses` | Amazon SES API |
//! | [`MailtrapMailer`] | `mailtrap` | Mailtrap API (testing/staging) |
//! | [`MailjetMailer`] | `mailjet` | Mailjet API |
//! | [`SocketLabsMailer`] | `socketlabs` | SocketLabs Injection API |
//! | [`GmailMailer`] | `gmail` | Gmail API (OAuth2) |
//! | [`ProtonBridgeMailer`] | `protonbridge` | [Proton Bridge](https://proton.me/mail/bridge) (local SMTP) |
//! | [`JmapMailer`] | `jmap` | JMAP protocol (Stalwart, Fastmail, etc.) |
//! | [`LocalMailer`] | `local` | In-memory storage for dev/testing |
//! | [`LoggerMailer`] | (none) | Logs emails without storing |

#[cfg(feature = "smtp")]
mod smtp;
#[cfg(feature = "smtp")]
pub use smtp::SmtpMailer;

#[cfg(feature = "resend")]
mod resend;
#[cfg(feature = "resend")]
pub use resend::ResendMailer;

#[cfg(feature = "unsent")]
mod unsent;
#[cfg(feature = "unsent")]
pub use unsent::UnsentMailer;

#[cfg(feature = "postmark")]
mod postmark;
#[cfg(feature = "postmark")]
pub use postmark::PostmarkMailer;

#[cfg(feature = "sendgrid")]
mod sendgrid;
#[cfg(feature = "sendgrid")]
pub use sendgrid::SendGridMailer;

#[cfg(feature = "brevo")]
mod brevo;
#[cfg(feature = "brevo")]
pub use brevo::BrevoMailer;

#[cfg(feature = "mailgun")]
mod mailgun;
#[cfg(feature = "mailgun")]
pub use mailgun::MailgunMailer;

#[cfg(feature = "amazon_ses")]
mod amazon_ses;
#[cfg(feature = "amazon_ses")]
pub use amazon_ses::AmazonSesMailer;

#[cfg(feature = "mailtrap")]
mod mailtrap;
#[cfg(feature = "mailtrap")]
pub use mailtrap::MailtrapMailer;

#[cfg(feature = "mailjet")]
mod mailjet;
#[cfg(feature = "mailjet")]
pub use mailjet::MailjetMailer;

#[cfg(feature = "socketlabs")]
mod socketlabs;
#[cfg(feature = "socketlabs")]
pub use socketlabs::SocketLabsMailer;

#[cfg(feature = "gmail")]
mod gmail;
#[cfg(feature = "gmail")]
pub use gmail::GmailMailer;

#[cfg(feature = "protonbridge")]
mod protonbridge;
#[cfg(feature = "protonbridge")]
pub use protonbridge::ProtonBridgeMailer;

#[cfg(feature = "jmap")]
mod jmap;
#[cfg(feature = "jmap")]
pub use jmap::JmapMailer;

#[cfg(feature = "local")]
mod local;
#[cfg(feature = "local")]
pub use local::LocalMailer;

mod logger;
pub use logger::LoggerMailer;