Skip to content

Commit

Permalink
Merge pull request #1375 from urviljoshi/email-html-enable-1.2.0.1
Browse files Browse the repository at this point in the history
configurable html content added
  • Loading branch information
gsasikumar authored Sep 15, 2022
2 parents 33f4802 + 8a66f85 commit 0182a2f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public class EmailNotificationServiceImpl implements EmailNotification<Multipart

@Value("${mosip.kernel.mail.proxy-mail:false}")
private boolean isProxytrue;

@Value("${mosip.kernel.mail.content.html.enable:true}")
private boolean isHtmlEnable;

/**
* SendEmail
Expand Down Expand Up @@ -105,7 +108,7 @@ private void send(String[] mailTo, String[] mailCc, String mailSubject, String m
if (mailSubject != null) {
helper.setSubject(mailSubject);
}
helper.setText(mailContent);
helper.setText(mailContent,isHtmlEnable);
} catch (MessagingException exception) {
throw new NotificationException(exception);
}
Expand Down

0 comments on commit 0182a2f

Please sign in to comment.