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 @@