If you are using Windows there is SMTP4Dev

https://chocolatey.org/packages/smtp4dev

Smtp4dev is also now available on Mac and Linux and Docker images are available:

https://github.com/rnwood/smtp4dev