There are lots of setups with programs that can collect email in testing environments. Some of them require you to install perl, nodejs, ruby, ... or require you do do a sophisticated setup with your mailserver.
But there is a little program called mailhog that is just a standalone statically linked binary that has no dependencies.
That makes it very easy to use.