You can easily disable PHP scripts from sending emails to, for that it is must to have root access of your server. You can check below steps:
Login to WHM.
Go to Server Configuration >> Tweak Settings >> Mail
Here enable “Restrict outgoing SMTP to root, exim, and mailman (FKA SMTP Tweak)”...