• 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() doesnt work

JuanCar

Regular Pleskian
Server operating system version
Centos 7
Plesk version and microupdate number
Obsidian 18.0.55
Hello
In my plesk I cannot use php mail() function. Whe I use php mail() function the message is not sent and there is not any message in maillog.
It happens in all my domains, in any php version.
How can it be fixed?
 
Solved, I don't know why but the path to send mail didnit exist. So the solution was easy:
Delete symbolic links (like a reset of links)
#unlink /etc/alternatives/mta
#unlink /usr/sbin/sendmail
Recreate them
#ln -s /etc/alternatives/mta /usr/sbin/sendmail
#ln -s /usr/lib64/plesk-9.0/qmail-sendmail-wrapper /etc/alternatives/mta

So it's solved, but I have no idea why sendmail has been removed, but the technical service of my host has been working about another fail, perhaps this can be the origin.
 
Back
Top