daaki-smtp 0.1.0

An async SMTP client library
Documentation
//! `daaki` SMTP client library.
//!
//! An async SMTP client (RFC 5321) built on tokio and rustls.
//! Handles connection, authentication, and message transmission. Does NOT
//! construct RFC 5322 messages — it sends raw bytes provided by the caller.

pub mod error;
pub mod types;

mod codec;
mod connection;

pub use connection::{SmtpConnection, TlsMode};
/// Re-export the canonical `Address` type from `daaki-message` so consumers
/// can use a single `Address` type across the IMAP, SMTP, and message crates
/// without manual field-by-field conversion .
pub use daaki_message::Address;
pub use error::Error;
pub use types::{
    AuthMechanism, BodyType, EnhancedStatusCode, MailFromParams, Protocol, RecipientResult,
    ServerCapabilities, SmtpExtension, SmtpResponse,
};

/// Result type alias for SMTP operations.
pub type Result<T> = std::result::Result<T, Error>;