FIX: do not encode mail body
This commit is contained in:
parent
166a6589e6
commit
0f22061a3d
|
@ -1,6 +1,7 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use lettre::Message;
|
||||
use lettre::message::header;
|
||||
use rocket::serde::json::Json;
|
||||
use rocket::State;
|
||||
|
||||
|
@ -219,7 +220,7 @@ pub fn create_email(mq: &State<Arc<MailQueue>>, settings: &State<Settings>, cook
|
|||
}
|
||||
}
|
||||
|
||||
let mail = match mail.body(maildata.body) {
|
||||
let mail = match mail.header(header::ContentType::TEXT_PLAIN).body(maildata.body) {
|
||||
Ok(mail) => mail,
|
||||
Err(e) => {
|
||||
error!("Couldn't create email: {}", e);
|
||||
|
|
Loading…
Reference in New Issue