How to disable PHP scripts for sending emails?

kumkumsharma

Administrator
Staff member
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)” option.
  • Now your mail function is disabled globally.
You can also directly disable mail function in php.ini file.

You can find the php.ini file in /usr/local/lib/php.ini location.

In this file you have to add “mail” to disable this function.

Code:
disable_functions = "exec, mail"
Now save your file and restart apache to reflect changes.

Steps to change Database User's schema in MSSQL

You can follow below steps:
  • Login to SQL server database.
  • Now right click on particular database and select “New Query” option.
  • After that run this command:
Code:
ALTER USER db_user WITH DEFAULT_SCHEMA = dbo;
Here db_user is your database username.
 
Top