title: Swiftmailer doesn't work
body: <p>I have problem with sending mails via Swiftmailer</p>
  
  <p>My parameters file is:</p>
  
  <pre><code>parameters:
    mailer_transport: smtp
    mailer_host: mail.myweb.cz
    mailer_user: noreply@myweb.cz
    mailer_password: pass
  </code></pre>
  
  <p>If I send mail to address with any@myweb.cz, mail arrives. But if I send mail to another address, for example something@gmail.com, mail does not arrives.</p>
  
  <p>SMTP on server is set:</p>
  
  <pre><code>server: smtp.myweb.cz
  port: 587
  security: STARTTLS
  auth method: Normal password
  </code></pre>
  
  <p>In Thunderbird is everthing ok, mistake must be in swiftmailer config.</p>
  
  <p>Thanks for help</p>
  
  <hr>
  
  <p>EDIT:</p>
  
  <p>On my local dev computer it works with solve from Javier Eguiluz, but I have an error on prod server now:</p>
  
  <p>app.ERROR: Exception occurred while flushing email queue: Unable to connect with TLS encryption.</p>
  
  <p>But if I try connect to server with STARTTLS from any other computer via telnet, it works.</p>
  
  <p>Do you have any idea?</p>
  
  <hr>
  
  <p>SOLVE:</p>
  
  <p>Problem was in self-signed certificate. I hadn't it in trusted certificates.</p>