GreenMail is an open source, intuitive and easy-to-use test suite of email servers for testing purposes. Supports SMTP, POP3, IMAP with SSL socket support. GreenMail also provides a JBossGreenMail Service.
GreenMail is the first library that offers a test framework for both receiving and retrieving emails from Java. Now we will try to understand the GreenMail.
This is the best approach to test mail.
» JavaEmail Testing with GreenMail
» Mule ESB Email Testing with GreenMail