lettre v0.10.1 Release Notes

Release Date: 2022-07-20 // almost 2 years ago
  • ๐Ÿ”‹ Features
    • โž• Add boring-tls support for SmtpTransport and AsyncSmtpTransport. The latter is only supported with the tokio runtime. (#797) (#798)
    • ๐Ÿ”ง Make the minimum TLS version configurable. (#799) (#800)
    ๐Ÿ› Bug Fixes
    • Ensure connections are closed on abort. (#801)
    • ๐Ÿ›  Fix SMTP dot stuffing. (#803)

Previous changes from v0.10.0

  • โฌ†๏ธ 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, 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
    • ๐Ÿ‘Œ 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