How to block emails sent via PHP in my whole cPanel or whole website?

Hello Everyone!!!

Here i am going to tell you a simple code to block emails sent via PHP in your whole cPanel or website.

How to block emails sent via PHP in my whole cPanel or whole website?

Simple steps to block emails sent via php:

  •  Login to your cPanel and go inside File Manager section
  • Go inside public_html and find .htaccess file
  • Just copy this disable_function=”mail”  Paste it in your .htaccess file

    Simple steps to block emails sent via php| cheap linux hosting
    Simple steps to block emails sent via php
  • Click on save changes

    Simple steps to block emails sent via php| cheap linux hosting
    Simple steps to block emails sent via php
 
As you click on Save changes automatically the coded PHP Functions get disabled.
 

Hope this answer helped you.. for more queries and suggestions feel free to write or you can also comment below.

Scroll to Top