From bec267237a9f3e2d817a61e31375c2c6388a75ee Mon Sep 17 00:00:00 2001 From: mposolda Date: Tue, 10 Dec 2013 16:05:13 +0100 Subject: [PATCH] KEYCLOAK-226 Display header To in email message sent from Keycloak --- .../src/main/java/org/keycloak/services/email/EmailSender.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/src/main/java/org/keycloak/services/email/EmailSender.java b/services/src/main/java/org/keycloak/services/email/EmailSender.java index ee2d33c803..5080fdd998 100755 --- a/services/src/main/java/org/keycloak/services/email/EmailSender.java +++ b/services/src/main/java/org/keycloak/services/email/EmailSender.java @@ -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();