Skip to content

Commit

Permalink
use usize::MAX for line wrap length, since lettre does it for us (#3034)
Browse files Browse the repository at this point in the history
fixes #2921
  • Loading branch information
smorks authored Jun 12, 2023
1 parent f50325e commit b47ce4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/utils/src/email.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ pub fn send_email(
(email, port)
};

// the message length before wrap, 78, is somewhat arbritary but looks good to me
let plain_text = html2text::from_read(html.as_bytes(), 78);
// use usize::MAX as the line wrap length, since lettre handles the wrapping for us
let plain_text = html2text::from_read(html.as_bytes(), usize::MAX);

let email = Message::builder()
.from(
Expand Down

0 comments on commit b47ce4c

Please sign in to comment.