I don't like the idea of external SMTP for this when http://danfarrelly.nyc/MailDev/ can make everything works locally - and it's very easy to add in our Docker based projects.
python -m smtpd -n -c DebuggingServer localhost:1025
it will dump all mail to stdout.(change port as you see fit, below 1024 requires root/sudoing)