use usize::MAX for line wrap length, since lettre does it for us (#3034)

fixes #2921
This commit is contained in:
Andy Brandt 2023-06-12 08:29:15 -05:00 committed by GitHub
parent f50325e78a
commit b47ce4c2e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,8 +43,8 @@ pub fn send_email(
(email, port) (email, port)
}; };
// the message length before wrap, 78, is somewhat arbritary but looks good to me // use usize::MAX as the line wrap length, since lettre handles the wrapping for us
let plain_text = html2text::from_read(html.as_bytes(), 78); let plain_text = html2text::from_read(html.as_bytes(), usize::MAX);
let email = Message::builder() let email = Message::builder()
.from( .from(