Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: send html emails in legacy features #1111

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
.receivers(receivers)
.subject(subject)
.body(emailBody)
.htmlBody(true)

Check warning on line 68 in digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateDelegate.java

View check run for this annotation

Codecov / codecov/patch

digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateDelegate.java#L68

Added line #L68 was not covered by tests
darenegade marked this conversation as resolved.
Show resolved Hide resolved
.replyTo(replyTo.orElse(null))
.sender(sender.orElse(null))
.attachments(fileAttachments)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
.receivers(receivers)
.subject(subject)
.body(emailBody)
.htmlBody(true)

Check warning on line 70 in digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateWithLinkDelegate.java

View check run for this annotation

Codecov / codecov/patch

digiwf-engine/digiwf-engine-service/src/main/java/de/muenchen/oss/digiwf/legacy/mailing/process/SendMailTemplateWithLinkDelegate.java#L70

Added line #L70 was not covered by tests
.replyTo(replyTo.orElse(null))
.attachments(fileAttachments)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Loading