fix: ensure HTML body is generated from plain text if no parts are available
This commit is contained in:
parent
7bca844d58
commit
a17d855ee5
1 changed files with 3 additions and 0 deletions
|
|
@ -143,6 +143,9 @@ export function getMailBody(fullMessage){
|
|||
html += part.body;
|
||||
}
|
||||
}
|
||||
if(html === "") {
|
||||
html = text.replace(/\n/g, "<br>");
|
||||
}
|
||||
return {text, html};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue