There is an email testing framework/library: https://greenmail-mail-test.github.io/greenmail/# This could be an option to write integration tests in the backend for sending and receiving emails