CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using CiviSMTP (Moderator: shane) »
  • IMPORTANT: patch for "STARTTLS failed" error in CCRM 4.7.0-4.7.20 with PHP 5.6
Pages: [1]

Author Topic: IMPORTANT: patch for "STARTTLS failed" error in CCRM 4.7.0-4.7.20 with PHP 5.6  (Read 833 times)

shane

  • Moderator
  • I post frequently
  • *****
  • Posts: 265
  • Karma: 16
IMPORTANT: patch for "STARTTLS failed" error in CCRM 4.7.0-4.7.20 with PHP 5.6
June 10, 2016, 11:58:17 am
NOTE: This issue has been fixed as of CCRM 4.7.22

The following error occurs when using CiviSMTP service in CiviCRM 4.7.0-4.7.20 with PHP 5.6 during SMTP authentication:

"SMTP: STARTTLS failed (code: 220, response: Go ahead with TLS)"

To fix the error, please make the following code edit to the file

<path_to_civicrm_module>/packages/Net/SMTP.php:

Change line

Code: [Select]
$this->_socket_options = $socket_options;
to line
Code: [Select]
$this->_socket_options = array('ssl' => array('verify_peer'=>false,'verify_peer_name'=>false,'allow_self_signed'=>true));
Email us at support@civismtp.com if you have any questions.
« Last Edit: July 13, 2017, 12:40:21 am by shane »

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: IMPORTANT: patch for "STARTTLS failed" error in CiviCRM 4.7+ with PHP 5.6
June 10, 2016, 12:44:21 pm
Hi Shane,

Is this a temporary solution? It seems unusual to disable TLS verification.

Thanks,
Mathieu
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

shane

  • Moderator
  • I post frequently
  • *****
  • Posts: 265
  • Karma: 16
Re: IMPORTANT: patch for "STARTTLS failed" error in CCRM 4.7.0-4.7.20 with PHP 5.6
July 13, 2017, 12:41:41 am
This issue has been fixed as of CiviCRM 4.7.22.

Email us at support@civismtp.com if you have any questions.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using CiviSMTP (Moderator: shane) »
  • IMPORTANT: patch for "STARTTLS failed" error in CCRM 4.7.0-4.7.20 with PHP 5.6

This forum was archived on 2017-11-26.