• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

PHP mail() function stopped workin

Byron R

New Pleskian
Hi guys, I am running Plesk 12 on a Centos 6.5 box with OVH, I am currently having trouble with the mail() feature of PHP. For some reason any forms using mail() are not sending the mail, the form is saying that it is sent, however the mail never arrives.

Sendmail is enabled in the php.ini file and is linked to the correct directory, also sendmail works on the command line and delivers the messages both internally to domains and externally to mail providers. It is not generating any errors in the domain error_log file nor in php error logs. I have exhausted all options with this, including overwriting postfix with qmail and back.
 
You could try to modify your mail forms with:
PHP:
<?php
ini_set('error_reporting', E_ALL);
error_reporting(E_ALL);
.....

so that it forces to reply with some decent informations in the error - logs of what's going wrong. You could as well check your PHP - ini's for some failures, if they are domain specific ( /var/www/vhosts/system/YOURDOMAIN.COM/etc/php.ini ).
 
Byron R,

It is good idea to check if the mail actually accepted by your mail server. Please check the mail system log /var/log/maillog
you should look for entries:
  • postfix-local: from=www-data ...
  • postfix/pipe ... status-sent
 
Back
Top