I am trying to intercept outgoing emails from joomla and reroute them to my email address for development and testing. Ideally I could set up a toggle under Global Configuration > Server > Email settings so that other non-developer teammates can control it easily as well, but the back end needs to be in place first.
If there is a plugin or built in that handles this kind of thing, that would be great but I can't find it.
I have read through and attempted the following (very old) solutions but I don't think it is going to work with 3.9. At least not without some tweaking:
I found a newer override solution, but I'm not sure it will work with core joomla email functions: