Files
lettre/examples/README.md
Paolo Barbolini 20d0f8f3ba Add async-std support to smtp transport (#531)
* Add async-std support to smtp transport

* fix Tls import

* fix copy paste

* too many imports

* Temporarely skip async-std native-tls support

* Fix panic message

* TlsParameters: use rustls when async-std is enabled
2021-01-28 11:07:15 +01:00

1.1 KiB

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_.