diff --git a/digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateDelegate.java b/digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateDelegate.java index a5227a5533..1a96dba362 100644 --- a/digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateDelegate.java +++ b/digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateDelegate.java @@ -65,6 +65,7 @@ public void execute(final DelegateExecution delegateExecution) throws Exception .receivers(receivers) .subject(subject) .body(emailBody) + .htmlBody(true) .replyTo(replyTo.orElse(null)) .sender(sender.orElse(null)) .attachments(fileAttachments) diff --git a/digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateWithLinkDelegate.java b/digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateWithLinkDelegate.java index cc471af6b1..351e3ca25f 100644 --- a/digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateWithLinkDelegate.java +++ b/digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateWithLinkDelegate.java @@ -67,6 +67,7 @@ public void execute(final DelegateExecution delegateExecution) throws Exception .receivers(receivers) .subject(subject) .body(emailBody) + .htmlBody(true) .replyTo(replyTo.orElse(null)) .attachments(fileAttachments) .build(); diff --git a/digiwf-libs/digiwf-email/digiwf-email-api/src/main/java/de/muenchen/oss/digiwf/email/impl/DigiwfEmailApiImpl.java b/digiwf-libs/digiwf-email/digiwf-email-api/src/main/java/de/muenchen/oss/digiwf/email/impl/DigiwfEmailApiImpl.java index 49e3ab1c2b..0346434c30 100644 --- a/digiwf-libs/digiwf-email/digiwf-email-api/src/main/java/de/muenchen/oss/digiwf/email/impl/DigiwfEmailApiImpl.java +++ b/digiwf-libs/digiwf-email/digiwf-email-api/src/main/java/de/muenchen/oss/digiwf/email/impl/DigiwfEmailApiImpl.java @@ -61,7 +61,7 @@ public void sendMail(@Valid Mail mail, String logoPath) throws MessagingExceptio mimeMessage.setReplyTo(InternetAddress.parse(mail.getReplyTo())); } - final var helper = new MimeMessageHelper(mimeMessage, true); + final var helper = new MimeMessageHelper(mimeMessage, true, StandardCharsets.UTF_8.name()); helper.setSubject(mail.getSubject()); helper.setText(mail.getBody(), mail.isHtmlBody());