title: How to define an additional mailer service to use the spool and send instant emails in Symfony2
body: <p>In my Symfony2 web app I'm supposed to send two kind of emails: instant and bulk. The instant emails should be send right away while the bulk emails should be send using the spool. With the default configuration of the Swiftmailer in Symfony2 it is impossible to do that because there is only one mailer service.</p>
  
  <p>Similar questions has been asked here in SO ( <a href="https://stackoverflow.com/questions/10741452/how-to-spool-emails-in-a-task-and-send-normal-emails-in-the-moment-in-the-othe">How to spool emails (in a task) and send normal emails in the moment in the other controllers?</a> ) with no luck, but according to this github thread ( <a href="https://github.com/symfony/SwiftmailerBundle/issues/6" rel="nofollow noreferrer">https://github.com/symfony/SwiftmailerBundle/issues/6</a> ) it is possible to create a second mailer service that can be configured totally different than the default one. Someone there (stof) recommended as a possible solution to follow the configuration found in the SwiftmailerBundle ( <a href="https://github.com/symfony/SwiftmailerBundle/blob/master/Resources/config/swiftmailer.xml" rel="nofollow noreferrer">https://github.com/symfony/SwiftmailerBundle/blob/master/Resources/config/swiftmailer.xml</a> ) to create this new service, but I don't know how exactly do that.</p>
  
  <p>Does anyone know how to create an additional mailer service that I can configured as a spool while having the default mailer service to send regular (instant) emails?</p>