title: Connection timeout Symfony2 Swiftmailer and Outlook
body: <p>I have a connection timeout when I want to send an email with Outlook via Swiftmailer for Symfony2...</p>
  
  <blockquote>
    <p>Connection could not be established with host smtp-mail.outlook.com
    [Connection timed out #110]</p>
  </blockquote>
  
  <p>I read a lot of things here and on internet, but nothing worked... 
  But I tried to set Thunderbird with that account, and it worked (the soft used STARTTLS instead of TLS).</p>
  
  <p>Here are my parameters :</p>
  
  <pre><code>dev_mailer_transport: smtp
  dev_mailer_host: smtp-mail.outlook.com
  dev_mailer_port: 587
  dev_mailer_user: USERNAME
  dev_mailer_password: PASSWORD
  </code></pre>
  
  <p>Here is my config :</p>
  
  <pre><code>swiftmailer:
      encryption: tls
      auth_mode: login
  </code></pre>
  
  <p>And here is the code used to send an email :</p>
  
  <pre><code>$message = \Swift_Message::newInstance()
                          -&gt;setSubject($subject)
                          -&gt;setFrom("no-reply@test.com")
                          -&gt;setTo($data["email"])
                          -&gt;setBody(nl2br($content), 'text/html');
  $this-&gt;container-&gt;get('mailer')-&gt;send($message);
  </code></pre>