• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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