From 4fb67a7da1a415696f29f167d9869c66e5ca5058 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Mon, 20 Feb 2023 11:56:28 +0100 Subject: [PATCH] Prepare 0.10.3 (#860) --- CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- README.md | 4 ++-- src/lib.rs | 2 +- 4 files changed, 37 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9bee0c..9fd1bd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,36 @@ + +### v0.10.3 (2023-02-20) + +#### Announcements + +It was found that what had been used until now as a basic lettre 0.10 +`MessageBuilder::body` example failed to mention that for maximum +compatibility with various email clients a `Content-Type` header +should always be present in the message. + +##### Before + +```rust +Message::builder() + // [...] some headers skipped for brevity + .body(String::from("A plaintext or html body"))? +``` + +##### Patch + +```diff + Message::builder() + // [...] some headers skipped for brevity ++ .header(ContentType::TEXT_PLAIN) // or `TEXT_HTML` if the body is html + .body(String::from("A plaintext or html body"))? +``` + +#### Features + +* Add support for rustls-native-certs when using rustls ([#843]) + +[#843]: https://github.com/lettre/lettre/pull/843 + ### v0.10.2 (2023-01-29) diff --git a/Cargo.toml b/Cargo.toml index bf0e9a6..3abcdc7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "lettre" # remember to update html_root_url and README.md (Cargo.toml example and deps.rs badge) -version = "0.10.2" +version = "0.10.3" description = "Email client" readme = "README.md" homepage = "https://lettre.rs" diff --git a/README.md b/README.md index ea9e693..4065a19 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@
- - + dependency status
diff --git a/src/lib.rs b/src/lib.rs index bd02df9..717a338 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -109,7 +109,7 @@ //! [mime 0.3]: https://docs.rs/mime/0.3 //! [DKIM]: https://datatracker.ietf.org/doc/html/rfc6376 -#![doc(html_root_url = "https://docs.rs/crate/lettre/0.10.2")] +#![doc(html_root_url = "https://docs.rs/crate/lettre/0.10.3")] #![doc(html_favicon_url = "https://lettre.rs/favicon.ico")] #![doc(html_logo_url = "https://avatars0.githubusercontent.com/u/15113230?v=4")] #![forbid(unsafe_code)]