The way I used to do it is to have all emails sent to me via a configuration setting in either Symfony or Laravel. This works fine but there can be a significant delay between the moment when the email is sent and the moment it is received, which is annoying. I have heard about mailtrap, which is a hosted service that does more or less what Mailocal does. But I’m not a fan of sending my customers’ info to a third party.
So over a couple of days I developed Mailocal which is a smtp server you run locally, with a web interface to view the emails is has received.
Obviously this is something that should not be run on a production server because I haven’t looked at the security aspects much, but that’s not the use case anyway.
So I hope you enjoy it and let me know if you find any issues.