Enable mail function per cPanel user?

me.ananda

Registered
Dec 25, 2013
2
0
1
cPanel Access Level
Root Administrator
I use cpanel and I turned off the mail () function on its server to prevent email spaming from this functionality,
but there is one of my friend's account requires mail () function
how do I allow access to mail is just the way in my friend's cpanel?
so I just simply enable mail diakun itself without removing the settings on my server.
can you use php.ini diakun it? if it can rule php.ini what is it like?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Hello,

That's a global PHP setting, however you could enable PHP-FPM for that specific account and then configure a unique disable_functions setting for that user. There's an example of how to configure PHP-FPM values for an individual account at:

PHP-FPM configuration settings

Thank you.