fix: ensure HTML body is generated from plain text if no parts are available

This commit is contained in:
mic 2025-04-23 18:24:09 +02:00
parent 7bca844d58
commit a17d855ee5

View file

@ -143,6 +143,9 @@ export function getMailBody(fullMessage){
html += part.body;
}
}
if(html === "") {
html = text.replace(/\n/g, "<br>");
}
return {text, html};
}