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

0 Members and 2 Guests 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

Offline
**
Re: turn off php mail require smtp/login for all mail server wide
« Reply #2 on: January 03, 2024, 02:08:13 PM »
Hello,
So with that setting at every PHP.ini version the accounts could not send through php-mail. Only with SMTP settings. Am I right?
You may use our FREE SMTP Newsletter APP at https://www.emailbat.com


Offline
****
Re: turn off php mail require smtp/login for all mail server wide
« Reply #4 on: January 07, 2024, 07:33:17 PM »
Hello,
So with that setting at every PHP.ini version the accounts could not send through php-mail. Only with SMTP settings. Am I right?

Yes, they would be forced to use SMTP Authentication on their mail server.

Offline
**
Re: turn off php mail require smtp/login for all mail server wide
« Reply #5 on: January 10, 2024, 12:40:09 PM »
So many thanks.
You may use our FREE SMTP Newsletter APP at https://www.emailbat.com