lettre v0.10.0 Release Notes

Release Date: 2022-06-29 // almost 2 years ago
  • โฌ†๏ธ Upgrade notes

    Several breaking changes were made between 0.9 and 0.10, but changes should be straightforward:

    • MSRV is now 1.56.0
    • ๐Ÿ”€ The lettre_email crate has been merged into lettre. To migrate, replace lettre_email with lettre::message and make sure to enable the builder feature (it's enabled by default).
    • ๐Ÿ— SendableEmail has been renamed to Email and EmailBuilder::build() produces it directly. To migrate, rename SendableEmail to Email.
    • The serde-impls feature has been renamed to serde. To migrate, rename the feature.

    ๐Ÿ”‹ Features

    • โž• Add tokio 1 support
    • โž• Add rustls support
    • โž• Add async-std support. NOTE: native-tls isn't supported when using async-std for the smtp transport.
    • ๐Ÿ‘ Allow enabling multiple SMTP authentication mechanisms
    • ๐Ÿ‘ Allow providing a custom message id
    • ๐Ÿ‘ Allow sending raw emails

    ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿ”€ Merge lettre_email into lettre
    • ๐Ÿ”€ Merge Email and SendableEmail into lettre::message::Email
    • ๐Ÿ— SmtpTransport is now an high level SMTP client. It provides connection pooling and shortcuts for building clients using commonly desired values
    • ๐Ÿ”จ Refactor TlsParameters implementation to not expose the internal TLS library
    • FileTransport writes emails into .eml instead of .json
    • ๐Ÿ‘ When the hostname feature is disabled or hostname cannot be fetched, 127.0.0.1 is used instead of localhost as EHLO parameter (for better RFC compliance and mail server compatibility)
    • 0๏ธโƒฃ The sendmail and file transports aren't enabled by default anymore.
    • ๐Ÿ—„ The new method of ClientId is deprecated
    • ๐Ÿ“‡ Rename serde-impls feature to serde
    • 0๏ธโƒฃ The SendmailTransport now uses the sendmail command in current PATH by default instead of /usr/bin/sendmail.

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fix argument injection in SendmailTransport (see RUSTSEC-2020-0069)
    • Correctly encode header values containing non-ASCII characters
    • โฑ Timeout bug causing infinite hang
    • ๐Ÿ›  Fix doc tests in website
    • ๐Ÿ›  Fix docs for domain field

    Misc

    • ๐Ÿ‘Œ Improve documentation, examples and tests
    • Replace line-wrap, email, bufstream with our own implementations
    • โœ‚ Remove bytes
    • โœ‚ Remove time
    • โœ‚ Remove fast_chemail
    • โšก๏ธ Update base64 to 0.13
    • โšก๏ธ Update hostname to 0.3
    • โšก๏ธ Update to nom 6
    • ๐ŸŒฒ Replace log with tracing
    • ๐Ÿ‘ท Move CI to Github Actions
    • ๐Ÿ‘‰ Use criterion for benchmarks