• 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.

Question how to activate the php mail() function, it doesn't work for me

gianoaa

New Pleskian
How can I make it work, I have my query with php mail() to send emails, password recovery, but here it does not send me anything. What steps do I need to follow to make it work?
 
Can you find out more on the reason by checking /var/log/maillog (/var/log/mail.log on some systems)?
 
Can you find out more on the reason by checking /var/log/maillog (/var/log/mail.log on some systems)?
[07-Mar-2023 07:49:01 UTC] PHP Warning: mail(): SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. in D:\Inetpub\vhosts\minfighterclassic.com\httpdocs\clases\recover-password.php on line 19
 
The method does not work, unfortunately there is no solution for this problem, I can only send messages to the accounts that I have created in the panel, but I cannot send to other people.
 
So adding the loop back addresses to the server-wide mail settings white list didn't resolve that issue? It should had because of how things are done. Do you know if you're able to send emails in general from your server? What is your mail enable configuration looks like?
 
Back
Top