I am using Mail Queue to send emails in my application (https://pear.php.net/package/Mail_Queue/)
The same code works fine on windows (php version: 5.5.28) and it gives the below mentioned exception on unix (php version 5.6)
PHP User Notice 'yii\base\ErrorException' with message 'Error in sending mail: authentication failure [SMTP: STARTTLS failed (code: 220, response: Begin TLS negotiation now)]'
The mail server credentials are fine. They are same on linux as well as on windows. Code 220
means the server is ready
(via http://www.serversmtp.com/en/smtp-error)
I read somewhere it is due to php5.6 and it will work fine on 5.5 but I don't think so that would be a valid answer/solution to the problem.