Symfony, commands and SwiftMailer

June 6, 2013
By

Symfony is a nice piece of software, but let’s admit it: it still has some rough edges

The one I stumbled in today involves the sending of e-mails using SwiftMailer from within a Symfony Command
Even if everything was correctly configured, the generated emails were not actually sent
The problem was soved by configuring SwiftMailer to use a spool file instead of the memory one
This way e-mails were correctly generated and queued to the spool file by the command . The standard console command to process the spool then succedes in actually sending the mails

Tags: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

ERROR: si-captcha.php plugin says GD image support not detected in PHP!

Contact your web host and ask them why GD image support is not enabled for PHP.

ERROR: si-captcha.php plugin says imagepng function not detected in PHP!

Contact your web host and ask them why imagepng function is not enabled for PHP.