Sorry, no cigar for you this time.
The error that I am getting is as shown below:
2015-08-02 16:10:15.114 ***** ERROR ***** ERROR *****
2015-08-02 16:10:15.119 ***** ERROR ***** on file '/var/www/html/projeqtor/external/PHPMailer/class.smtp.php' at line (274)
2015-08-02 16:10:15.119 ***** ERROR ***** cause = stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
2015-08-02 16:10:15.124 ***** ERROR ***** Error sending mail
2015-08-02 16:10:15.124 ***** ERROR ***** SMTP Server : mail.verncon.net
2015-08-02 16:10:15.124 ***** ERROR ***** SMTP Port : 587
2015-08-02 16:10:15.124 ***** ERROR ***** Mail stored in Database : #32
2015-08-02 16:10:15.124 ***** ERROR ***** PHPMail error : SMTP connect() failed.
2015-08-02 16:10:15.124 ***** ERROR ***** PHPMail debug :
This is a problem which prevents the use of the use of SSL/TLS authenticated mail with php5.6 and above.
PHP5.6 now REQUIRES the supply of a client certificate, with a verifiable CA, from trhe client (i.e. from projeqtor), to allow the authentication process to be passed.
From the GitHub troubleshooting guide
github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
.......................
"
PHP 5.6 certificate verification failure
In a change from earlier versions, PHP 5.6 verifies certificates on SSL connections. If the SSL config of the server you are connecting to is not correct, you will get an error like this:
Warning: stream_socket_enable_crypto(): SSL operation failed with code 1.
OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
The correct fix for this is to replace the invalid, misconfigured or self-signed certificate with a good one. Failing that, you can allow insecure connections via the SMTPOptions property introduced in PHPMailer 5.2.10 (it's possible to do this by subclassing the SMTP class in earlier versions), though this is not recommended:
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);"
...............
There is a workaround to it, but is not possible as it is only supported in a feature PHPOptions, which was introduced in phpMailer version 5.2.10, HOWEVER, the version of phpMailer which is supplied with projeqtor5.0.3 is an older version, 5.2.7
How soon can a fix/workaround to this problem be provided?
- It would be preferable to have a patch to the code which allows for a client certificate and private key to be referenced,
or
- otherwise an upgraded version of phpMailer, v5.2.10 or above which allows for the setting of an insecure connection to the smtp server.
Cheers,
VERNCon.