diff --git a/pom.xml b/pom.xml
index e2ce4190bd..e537f9b0ba 100755
--- a/pom.xml
+++ b/pom.xml
@@ -226,6 +226,11 @@
javase
2.2
+
+ com.icegreen
+ greenmail
+ 1.3.1b
+
org.jboss.arquillian
diff --git a/services/pom.xml b/services/pom.xml
index 02f2c8ae9a..dce0df7d58 100755
--- a/services/pom.xml
+++ b/services/pom.xml
@@ -156,6 +156,11 @@
3.6.6.Final
test
+
+ com.icegreen
+ greenmail
+ test
+
diff --git a/services/src/main/java/org/keycloak/services/email/EmailSender.java b/services/src/main/java/org/keycloak/services/email/EmailSender.java
new file mode 100644
index 0000000000..da91a851cc
--- /dev/null
+++ b/services/src/main/java/org/keycloak/services/email/EmailSender.java
@@ -0,0 +1,44 @@
+package org.keycloak.services.email;
+
+import java.util.Map.Entry;
+import java.util.Properties;
+
+import javax.mail.Message;
+import javax.mail.MessagingException;
+import javax.mail.Session;
+import javax.mail.Transport;
+import javax.mail.internet.AddressException;
+import javax.mail.internet.InternetAddress;
+import javax.mail.internet.MimeMessage;
+
+public class EmailSender {
+
+ private Properties properties;
+
+ public EmailSender() {
+ properties = new Properties();
+ for (Entry