swiftmailer/swiftmailer — pull request #323 by nurikabe (2013-05-29 17:43:47+00:00)
Title: Start transport only if there are messages in the queue

When firing the console `swiftmailer:spool:send` command via cron, the file based spool would first open an SMTP connection before trying to determine if there were any messages to send. This can get expensive when using SMTP services like SendGrid that charge per connection in addition to messages sent.