title: Swiftmailer symfony2.2 always sent 0 emails
body: <p>I have the following swiftmailes config</p>
  
  <pre><code># config.yml
  swiftmailer:
      transport: stmp
      host:      mail.domain.com
      port:      25
      username:  myuser
      password:  mypass
      spool:
          type: file
          path: "%kernel.cache_dir%/swiftmailer/spool"
      logging:  "%kernel.debug%"
  </code></pre>
  
  <p>and the following code for send message</p>
  
  <pre><code>$subject = "TESTING";
  
  $mailer = $this-&gt;getContainer()-&gt;get('mailer');
  $message = \Swift_Message::newInstance()
      -&gt;setSubject($subject)
      -&gt;setFrom("noreply@domain.com")
      -&gt;setTo("julian.reyes.escrigas@gmail.com")
      -&gt;setBody("Body message");
  
  $mailer-&gt;send($message);
  </code></pre>
  
  <p>after send the message this can be founded in <code>app/cache/dev/swiftmailer/spool</code> but when i call the command</p>
  
  <pre><code>$ app/console swiftmailer:spool:send --message-limit=10 --env=dev
  </code></pre>
  
  <p>all messages in the spool disapear but aren't sent to receiver.</p>
  
  <p><strong>Note</strong>: I've tried STMP settings with a client (thunderbird) and working properly</p>
  
  <hr>
  
  <h2>Testing</h2>
  
  <p>for testing purposes I tried to send messages directly without queue</p>
  
  <pre><code>$message = \Swift_Message::newInstance()
      -&gt;setSubject($subject)
      -&gt;setFrom("noreply@domain.com")
      -&gt;setTo("julian.reyes.escrigas@gmail.com")
      -&gt;setBody("Body message");
  
  $mailer-&gt;send($message);
  
  $transport  = $this-&gt;getContainer()-&gt;get('swiftmailer.transport.real');
  $transport-&gt;start();
  
  // but count alwasy is zero
  $count = $transport-&gt;send($message);
  </code></pre>
  
  <p>i've tried every combination in the config.yml file</p>
  
  <pre><code>auth_mode:  plain / login / null
  encryption: tsl / ssl / null
  port: 25 / 465
  </code></pre>
  
  <p>from symfony profiler i get</p>
  
  <pre><code>Content-Transfer-Encoding: quoted-printable
  Content-Type: text/plain; charset=utf-8
  MIME-Version: 1.0
  Date: Tue, 04 Jun 2013 14:33:12 -0500
  Message-ID: &lt;1370374392.51ae40f8b6202@localtest&gt;
  From: noreply@mydomain.com
  Subject: TEST
  To: julian.reyes.escrigas@gmail.com
  Mensaje de prueba de Texto
  </code></pre>
  
  <hr>
  
  <h2>Testing 2</h2>
  
  <p>I'm starting to think that may be a problem with the version that I have installed. i've tried without success creating a SMTP transport directly</p>
  
  <pre><code>$message = \Swift_Message::newInstance()
      -&gt;setSubject("TEST")
      -&gt;setFrom("noreply@domain.com")
      -&gt;setTo(array("julian.reyes.escrigas@gmail.com"))
      -&gt;setBody("Mensaje de prueba de Texto");
  
  
  $transport = \Swift_SmtpTransport::newInstance('mail.domain.com', 25)
      -&gt;setUsername('noreply@domain.com')
      -&gt;setPassword('THEPASS');
  
  $mailer = \Swift_Mailer::newInstance($transport);
  
  $transport-&gt;start();
  // ZERO again
  $output-&gt;writeln(sprintf("Mensajes enviados: %s", $mailer-&gt;send($message)));
  </code></pre>
  
  <p><strong>Note 2</strong>: I've tried with PHpMailer and sent mails without problem with the same settings, but i want use swiftmailer</p>
  
  <p><strong>Note 3</strong>: testing on my hosting provider with local settings work fine. but i cant test from my own laptop (dev enviroment) without use a tricky ssh tunnel</p>
  
  <pre><code>transport: mail
  host: localhost
  username: ~
  password: ~
  </code></pre>
  
  <ul>
  <li>PHP 5.4.6</li>
  <li>Symfony 2.2.2</li>
  <li>Swiftmailer 5.0</li>
  </ul>