Author Topic: turn off php mail require smtp/login for all mail server wide  (Read 800 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
turn off php mail require smtp/login for all mail server wide
« on: October 12, 2020, 05:44:32 PM »
I want to turn off php mail require smtp/login for all mail server wide in my centos 7 server... Usually I would do this by editing php.ini but I can not see this anywhere on the CWP php.ini file... I do not want php mail at all as wordpress sites are horrible for sending tons of spam from non updated installs. I need all users to use smtp with authentication.
Where do I kill the php mail on a CWP server?

Offline
*****
Re: turn off php mail require smtp/login for all mail server wide
« Reply #1 on: October 12, 2020, 06:18:15 PM »
you need to disable mail function for php in php.ini
disable_functions = mail