mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-14 00:37:07 +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)
|
(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(
|
||||||
|
|
Loading…
Reference in a new issue