• 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 not working after plesk update

Niels van de rWal

New Pleskian
Hi,

After updating Plesk from 11.x to 12.5, the mail() function doesn't work anymore.
I can sent mail with Outlook (imap) and webmail, but on a website I can't.
I tried it with the mail() function, but also the phpmailer class don't work.
The mail() function always returns false. (no errors)

After searching hours for a solution, I hope you can help me?

Greetings
 
Make sure that you have enabled option "Allow users and scripts to use Sendmail" in Tools&Settings -> Mail Settings
 
Check that you haven't this function in php disabled_functions option for this subscription.
 
Check that you haven't this function in php disabled_functions option for this subscription.
This is in my php.ini:
Code:
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.
; http://php.net/disable-functions
disable_functions =
 
Hi Niels van de rWal,

if you would like help with your investigations, consider to add depending entries from your mail - log ( /var/log/ ) . It helps as well to include depending entries from your apache and/or nginx - logs, located at "/var/www/vhosts/system/(SUB)DOMAIN.COM/logs/", if you use scripts.
 
Same problem here after upgrading from 11.5 to 12.5.
The strange thing is that trying to send with
<?php
// Send email
mail("test@test.tld","hello","test mail function");
?>
as suggested by Igor, the e-mail arrives.

But all wordpress forms and Others script sending mail for all domains on the server don't work.

Someone can help us?
 
I'm trying using the CHECK MAIL plugin for wordpress and i got important info looking to log files:

[Mon Nov 07 16:15:46 2016] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: PHP Warning: stream_socket_enable_crypto(): SSL operation faile, referer: http://www.MYDOMAIN.com/wp-admin/tools.php?page=checkemail
[Mon Nov 07 16:15:46 2016] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: d with code 1. OpenSSL Error messages:, referer: http://www.MYDOMAIN.com/wp-admin/tools.php?page=checkemail
[Mon Nov 07 16:15:46 2016] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/www/vhosts/MYDOMAIN.com/httpdocs/wp-includes/class-smtp.php on line 344, referer: http://www.MYDOMAIN.com/wp-admin/tools.php?page=checkemail

So it seems that new php 5.6 verifies SSL certificates by default. Look here: https://github.com/PHPMailer/PHPMailer/issues/368
In this thread there is explanation to avoid this test but is also explained that is better to fix SSL verification... but how to do that?
 
So... no answers... so i change the question. New servers with a native Plesk 12.5 panel have already a SSL certificate installed? Or they have a different php.ini configuration in order to avoid PHP 5.6 checkings on ssl?
I'm going crazy with this problem...
 
Back
Top