Files
lettre/examples
Paolo Barbolini 5c83120986 Executor refactor (#545)
* Executor
* Move transports inside the transport module
* AsyncTransport refactor
* Update examples
* Update docs
* impl Default for AsyncSendmailTransport
* Implement AsyncFileTransport::read
* Generalize AsyncFileTransport AsyncTransport implementation
* Remove remaining uses of AsyncSmtpConnector
2021-02-27 16:36:59 +00:00
..
2021-02-27 16:36:59 +00:00
2021-02-03 10:23:08 +01:00
2021-02-03 10:23:08 +01:00
2020-12-18 14:49:59 +01:00
2021-02-27 16:36:59 +00:00
2021-02-27 16:36:59 +00:00

Lettre Examples

This folder contains examples showing how to use lettre in your own projects.

Message builder examples

SMTP Examples

  • smtp.rs - Send an email using a local SMTP daemon on port 25 as a relay.
  • smtp_tls.rs - Send an email over SMTP encrypted with TLS and authenticating with username and password.
  • smtp_starttls.rs - Send an email over SMTP with STARTTLS and authenticating with username and password.
  • smtp_selfsigned.rs - Send an email over SMTP encrypted with TLS using a self-signed certificate and authenticating with username and password.
  • The smtp_tls.rs and smtp_starttls.rs examples also feature asynchronous implementations powered by Tokio. These files are prefixed with tokio02_, tokio1_ or asyncstd1_.