SwiftMailer - PHP - How to disable ssl certificate validation
<p>I need to disable the validation of ssl certificate for developing purpose but i don't find anything about this in official documentation. <a href="http://swiftmailer.org/docs/introduction.html" rel="noreferrer">http://swiftmailer.org/docs/introduction.html</a></p>

<p>I'm using php 5.6 and Symfony2 (v2.7).</p>

<p>The configuration reference of SwiftMailerBundle is:</p>

<pre><code>swiftmailer:
   transport:            smtp
   username:             ~
   password:             ~
   host:                 localhost
   port:                 false
   encryption:           ~
   auth_mode:            ~
   spool:
      type:                 file
      path:                 '%kernel.cache_dir%/swiftmailer/spool'
   sender_address:       ~
   antiflood:
      threshold:            99
      sleep:                0
   delivery_address:     ~
   disable_delivery:     ~
   logging:              '%kernel.debug%'
</code></pre>