KEYCLOAK-226 Display header To in email message sent from Keycloak

This commit is contained in:
mposolda 2013-12-10 16:05:13 +01:00
parent a2e312b3f1
commit bec267237a

View file

@ -86,6 +86,7 @@ public class EmailSender {
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
msg.setHeader("To", address);
msg.setSubject(subject);
msg.setText(body);
msg.saveChanges();