Crate async_smtp[][src]

Async-Smtp is an implementation of the smtp protocol in Rust.

Re-exports

pub use crate::file::FileTransport;
pub use crate::sendmail::SendmailTransport;
pub use crate::smtp::client::net::ClientTlsParameters;

Modules

error
file

The file transport writes the emails to the given directory. The name of the file will be message_id.txt. It can be useful for testing purposes, or if you want to keep track of sent messages.

sendmail

The sendmail transport sends the email using the local sendmail command.

smtp

The SMTP transport sends emails using the SMTP protocol.

stub

The stub transport only logs message envelope and drops the content. It can be useful for testing purposes.

Structs

EmailAddress

Email address

Envelope

Simple email envelope representation

SendableEmail

Sendable email structure

SmtpClient

Contains client configuration

SmtpTransport

Structure that implements the high level SMTP client

Enums

ClientSecurity

How to apply TLS to a client connection

Message

Traits

Transport

Transport method for emails