diff --git a/bundles/org.openhab.binding.mail/src/main/java/org/openhab/binding/mail/internal/MailBuilder.java b/bundles/org.openhab.binding.mail/src/main/java/org/openhab/binding/mail/internal/MailBuilder.java index 243d5194d1a..c18a51e93f6 100644 --- a/bundles/org.openhab.binding.mail/src/main/java/org/openhab/binding/mail/internal/MailBuilder.java +++ b/bundles/org.openhab.binding.mail/src/main/java/org/openhab/binding/mail/internal/MailBuilder.java @@ -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), "", "");