* Add HTML email example * Add comment about creating `SmtpTransportBuilder` Add similar comment to `AsyncSmtpTransportBuilder` * Improve wording and fix typos * Add file_html example to Cargo.toml * Update examples/README.md Co-authored-by: Paolo Barbolini <paolo@paolo565.org> * Use intra-doc links * Rename file_html example to basic_html * Add maud HTML example * Make CI happy * Fix CSS * Fix maud version Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
Lettre Examples
This folder contains examples showing how to use lettre in your own projects.
Examples
- file_html.rs - Create an HTML email.
- 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 withtokio02_ortokio03_.