• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved php mail fails for regular users, works for root

tkalfaoglu

Silver Pleskian
A test.php file stored at the customer's httpdocs folder produces nothing if the owner of that file is
username : psacln ... If the owner is root:root then the mail is delivered. The file is very simple:

<?php
mail('[email protected]','hello','test mail function');
?>


Sendmail is enabled both on server level and subscription level for that customer.
What else shall I check?
many thanks -t
 
UPDATE: I disabled the use of sendmail server-wide.. then re-enabled it..
Now my test.php works - it sends mail as regular user!
 
Back
Top