mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 12:21:18 +00:00
use usize::MAX for line wrap length, since lettre does it for us (#3034)
fixes #2921
This commit is contained in:
parent
f50325e78a
commit
b47ce4c2e6
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue