Following an extended period of testing of an enterprise application and its suite of transactional emails, I’ve written my own software sandbox for capturing outgoing emails for testing.
MockSMTP provides an SMTP server to which an application under test can send email messages without them escaping to the outside world. It also includes a simple web interface to list all received emails and to view each email’s headers, body, and attachments. The entire tool is self-contained, making it useful for stand-alone environments or for including in your own testing pipelines.
It’s completely free and open-source, so feel free to give it a try!