Loading...
 
Skip to main content

15.x: Email sending through smtp fails with php 5.6 and/or Zend 2.6

Status
Open
Subject
15.x: Email sending through smtp fails with php 5.6 and/or Zend 2.6
Version
15.x
15.x Regression
Category
  • Regression
Feature
Watch (email notifications of changes)
Resolution status
Confirmed
Submitted by
Xavier de Pedro
Volunteered to solve
Jonny Bradley
Lastmod by
Xavier de Pedro
Rating
(0)
Description

I did a quick test of mail seding (through tiki-admin.php?page=general) with a computer recently upgraded from Ubuntu 14.04 to Ubuntu 16.04, which comes with php7 by default. Attempting to send a test email through smtp with tiki 15.x svn fails with this message:

Copy to clipboard
Unable to send mail Array ( [0] => Unable to connect via TLS )


Same setup with Ubuntu 14.04 works as expected: emails sent (and reported as such by tiki, as usual, etc):
PHP Version 5.5.9-1ubuntu4.14
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

I downgraded the php in Ubuntu 16.04 to use php 5.6 (in both web app and php-cli).
Same error persisted.
PHP Version 5.6.21-1+donate.sury.org~xenial+2
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies


Maybe the error came with Zend Engine 2.5->2.6 and Tiki15?
Or maybe there is some issue with openssl in php in php5.6 AND php7.0 compared to php 5.5?


-

Standard email sending (directly through sendmail or postifx but no smtp set) works as expected. It didn't work before due to missing system packages


UPDATE:

  • retested using three different XAMPP packages, all of them on top of the same Ubuntu 16.04 64 bit box. Issue reproduced in xampp 5.6 and 7.0, but works as expected in xampp 5.5 (PHP Version 5.5.35.35; Zend Engine v2.5.0).

Importance
8
Easy to solve?
7
Priority
56
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5920
Created
Friday 29 April, 2016 16:07:19 UTC
by Xavier de Pedro
LastModif
Tuesday 31 May, 2016 16:19:16 UTC


Show PHP error messages