WordPress sends emails when your site experiences a fatal error. This is handy for debugging and is useful to prevent a negative user experience.
But when you work on a demo site or on a site that is about to go live, you don’t need this email. Therefore, you may need to disable these emails. In this tutorial, I’ll show you how you can disable these emails.
Disabe WordPress “Your Site is Experiencing a Technical Issue” Emails
To stop WordPress from sending emails, paste the followoing code to your wp-config.php:
Now, you can work freely. No email will bother you concerning a fatal error.
Let me know if the method works for you or not.