1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
//! ### Sending Messages //! //! This section explains how to manipulate emails you have created. //! //! This mailer contains several different transports for your emails. To be sendable, the //! emails have to implement `Email`, which is the case for emails created with `lettre::builder`. //! //! The following transports are available: //! //! * The `SmtpTransport` uses the SMTP protocol to send the message over the network. It is //! the preferred way of sending emails. //! * The `SendmailTransport` uses the sendmail command to send messages. It is an alternative to //! the SMTP transport. //! * The `FileTransport` creates a file containing the email content to be sent. It can be used //! for debugging or if you want to keep all sent emails. //! * The `StubTransport` is useful for debugging, and only prints the content of the email in the //! logs. #[cfg(feature = "file-transport")] #[cfg_attr(docsrs, doc(cfg(feature = "file-transport")))] pub mod file; #[cfg(feature = "sendmail-transport")] #[cfg_attr(docsrs, doc(cfg(feature = "sendmail-transport")))] pub mod sendmail; #[cfg(feature = "smtp-transport")] #[cfg_attr(docsrs, doc(cfg(feature = "smtp-transport")))] pub mod smtp; pub mod stub;