title: Prestashop 1.6 and SwiftMailer with PHP version 5.6 - fsockopen error
body: <p>I have an issue with sending mail using the version of Swiftmailer that came with PS1.6</p>
  <p>Swift Error: The SMTP connection failed to start [ssl://mail.wineofthemonth.co.za:465]: fsockopen returned Error Number 0 and Error String ''</p>
  <p>This is due to the fact that since PHP 5.6 the verify_peer option is set to true by default.</p>
  <p>Now I have found various instructions on how to set verify peer to false:</p>
  <pre><code>$https['ssl']['verify_peer'] = FALSE;
  $https['ssl']['verify_peer_name'] = FALSE;
  </code></pre>
  <p>The issue is that there is no place to set this in the version of Swiftmailer that is being used in Prestashop.</p>
  <p>So my question is, where in class/mail.php or anywhere else would I set verify_peer to false?</p>
  <p>Here is the line in mail.php that I think pertains to this:</p>
  <pre><code>$connection = new Swift_Connection_SMTP(
                      $configuration['PS_MAIL_SERVER'],
                      $configuration['PS_MAIL_SMTP_PORT'],
                      $configuration['PS_MAIL_SMTP_ENCRYPTION'] == 'ssl' ? Swift_Connection_SMTP::ENC_SSL : (($configuration['PS_MAIL_SMTP_ENCRYPTION'] == 'tls' ? Swift_Connection_SMTP::ENC_TLS : Swift_Connection_SMTP::ENC_OFF))
                  );
  </code></pre>
  <p>There is also a sendMailtest method that could lend more clarity:</p>
  <pre><code>public static function sendMailTest($smtpChecked, $smtpServer, $content, $subject, $type, $to, $from, $smtpLogin, $smtpPassword, $smtpPort = 25, $smtpEncryption)
      {
          $result = false;
          try {
              if ($smtpChecked)
              {
                  $smtp = new Swift_Connection_SMTP($smtpServer, $smtpPort, ($smtpEncryption == 'off') ?
                      Swift_Connection_SMTP::ENC_OFF : (($smtpEncryption == 'tls') ? Swift_Connection_SMTP::ENC_TLS : Swift_Connection_SMTP::ENC_SSL));
                  $smtp-&gt;setUsername($smtpLogin);
                  $smtp-&gt;setpassword($smtpPassword);
                  $smtp-&gt;setTimeout(5);
                  $swift = new Swift($smtp, Configuration::get('PS_MAIL_DOMAIN'));
              }
              else
                  $swift = new Swift(new Swift_Connection_NativeMail(), Configuration::get('PS_MAIL_DOMAIN'));
  
              $message = new Swift_Message($subject, $content, $type);
  
              if ($swift-&gt;send($message, $to, $from))
                  $result = true;
  
              $swift-&gt;disconnect();
          } catch (Swift_ConnectionException $e) {
              $result = $e-&gt;getMessage();
          } catch (Swift_Message_MimeException $e) {
              $result = $e-&gt;getMessage();
          }
  
          return $result;
      } 
  </code></pre>
  <p>Alternatively, where in any conf or ini file, could I set verify_peer to false?</p>
  <p>Prestashop 1.6.1.1 to 1.6.1.4 are affected.</p>