php mail(); function doesn't work when disabling NOBODY from sending emails

maaking

Member
May 28, 2004
15
0
151
Hello,

When disabling NOBODY from sending emails in:
WHM>>Tweak Settings>>Prevent the user 'nobody' from sending out mail to remote addresses (php and cgi scripts generally run as nobody if you are not using phpsuexec and suexec respectively.)

when I disabled it most users complained + they are unable to email their clients especially forum newsletter.
The php mail function sends emails to localhost email accounts only, but it doesn't send any single email out side the server.

the question is: how to keep NOBODY blocked and bring PHP Mail(); to work?.
 

maaking

Member
May 28, 2004
15
0
151
thank you ecwebtechie,

but where/how to install phpsuexec, when i install it, all php file should be modified and add: #!/usr/local/bin/php in top line?.

regards
maaking