Open rasheedamir opened 9 years ago
Good example to follow and implement: http://digitalsanctum.com/2011/04/21/how-to-test-java-mail-without-a-server/
If you have an app that sends email and you want to test it without a mail server. then the solution involves using the Spring framework and an open source library called subethasmtp, a server-side SMTP library for Java.
Wiser is a simple SMTP server that you can use for unit testing applications that send mail.
https://code.google.com/p/subethasmtp/wiki/Wiser