cargo lettre 0.10.3

latest releases: 0.11.24, 0.11.23, 0.11.22...
3 years ago

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
Message::builder()
  // [...] some headers skipped for brevity
  .body(String::from("A plaintext or html body"))?
Patch
 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)

Don't miss a new lettre release

NewReleases is sending notifications on new releases.