You could configure an email sandbox service like mailtrap.io or HELO.
Every mail sent will be delivered to a catch-all inbox.
Thread Starter
wolf19
(@wolf19)
Thanks for your reply. However, it doesn’t fit my use case. The database is copied from live server so it has the exact same settings as that and I don’t want to configure it each time for dev/staging. Is there a define that is checked (preferred) or a filter that can be set in these environments that disable sending the mails and use the default wp_mail behaviour (saving to disk in my case)? I’ve seen plugins that can do this, but I don’t want to switch if not necessary.
@wolf19 Hi,
Hope you are doing good.
There is no feature like this, you can temporarily disbale the Plugin on your staging website and do your work and testing.
Thanks