Skip to content

Commit

Permalink
configurable html content added
Browse files Browse the repository at this point in the history
  • Loading branch information
urviljoshi committed Sep 15, 2022
1 parent 33f4802 commit 8a66f85
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 8a66f85

Please sign in to comment.