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();