a mailer library for Rust
While this release technically contains breaking changes, we expect most projects
to be able to upgrade by only bumping the version in Cargo.toml
.
From<Address>
implementation for Mailbox
(#879)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.
Message::builder()
// [...] some headers skipped for brevity
.body(String::from("A plaintext or html body"))?
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"))?