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:
- https://stackoverflow.com/questions/20965651/intercept-all-joomla-outgoing-emails-reroute-them-to-a-specified-address
- https://stackoverflow.com/questions/15546270/joomla-mail-goes-to-spam-folder-how-to-add-text-plain-when-sending-html-email
- https://gist.github.com/dongilbert/3237387
I found a newer override solution, but I'm not sure it will work with core joomla email functions: