[mail] Fix sending HTML mails (#16587)

Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
J-N-K 2024-03-27 20:08:25 +01:00 committed by Ciprian Pascu
parent 671ef37186
commit 34a228787e

View File

@ -185,7 +185,7 @@ public class MailBuilder {
htmlMail.setTextMsg(text);
htmlMail.setHtmlMsg(html);
} else {
htmlMail.setMsg(html);
htmlMail.setHtmlMsg(html);
}
for (File file : attachmentFiles) {
htmlMail.attach(new FileDataSource(file), "", "");