Create the separate php.ini file for your user and disable the mail function in that php.ini file,
disable_functions = mail, sendmail
Create the separate php.ini file for your user and disable the mail function in that php.ini file,
disable_functions = mail, sendmail