Title: Disable for development?
Last modified: June 22, 2022

---

# Disable for development?

 *  Resolved [wolf19](https://wordpress.org/support/users/wolf19/)
 * (@wolf19)
 * [4 years ago](https://wordpress.org/support/topic/disable-for-development/)
 * Hello,
 * what is the best way to disable the plugin on development/staging servers, so
   emails are not send there?
 * Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [mpskovvang](https://wordpress.org/support/users/mpskovvang/)
 * (@mpskovvang)
 * [4 years ago](https://wordpress.org/support/topic/disable-for-development/#post-15759858)
 * You could configure an email sandbox service like [mailtrap.io](https://mailtrap.io/)
   or [HELO](https://usehelo.com/).
 * Every mail sent will be delivered to a catch-all inbox.
 *  Thread Starter [wolf19](https://wordpress.org/support/users/wolf19/)
 * (@wolf19)
 * [4 years ago](https://wordpress.org/support/topic/disable-for-development/#post-15760134)
 * 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.
 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [4 years ago](https://wordpress.org/support/topic/disable-for-development/#post-15767394)
 * [@wolf19](https://wordpress.org/support/users/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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Disable for development?’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/disable-for-development/#post-15767394)
 * Status: resolved