Stop a WordPress website from sending any emails using the standard wp_mail() function. No emails will be sent, not even for password resets or administrator notifications.
WordPress websites can send emails for a variety of reasons — user registration, password reset, enquiry form submission, ecommerce purchase — but sometimes you don’t want it to send anything at all. Some reasons for disabling all emails:
- demonstration websites that allow users to do things that normally send emails
- development / test websites with live data that might email real customers
- bulk-loading data into websites which might trigger emails
- adding new sites into multisite installations