Testing of email notifications with GreenMail, a mock mail server
Sending emails or receiving and processing emails is something that a lot of applications feature to their users. But how do you know that the code doing this actually works? Even though email integrations are widespread functionalities, only few projects have a clear process of how to test them. Why? Because testing is sometimes challenging and people are afraid of accidentally leaking emails to real mail servers. Often these processes also do not offer a great developer experience. GreenMail is an open source, intuitive and easy-to-use suite of mock email servers for testing purposes, which aims to solve these problems. In this presentation you will learn how to leverage GreenMail to manually and integration test your email functionality while at the same time offering a great development experience.
Slides & code: https://slides.com/jensknipper/greenmail https://github.com/JensKnipper/greenmail-example