About | Examples | JBoss | FAQ | Javadocs | Blog | Download | Feedback

Is any mail delivered?

No. Further, GreenMail stores all recieved messages in memory.

Which versions of JDK does GreenMail run under?

JDK 1.4 and above

How do I create User Accounts?

   Servers server ...;
   User user = server.setUser("email@address.com", "login", "password");

How come I don't have to create any accounts to send/retrieve?

By default GreenMail accepts all incoming emails. If there is no corresponding existing email account, one is automatically created with login and password being the same as the to-address.

What other library dependencies are there?

   
	javamail.jar
	activation.jar
	slf4j-api.jar
These libraries ship with the distribution.

How come I don't need to install any SSL/TLS related certificates?

GreenMail is designed to be used out of the box with no need to generate, sign or install any cerificates into your keystore. GreenMail ships with a builtin keystore with a self signed RSA key. Refer to the source code of DummySSLServerSocketFactory for details.