set swiftmailer in symfony2

June 5, 2014 3.8k views
hello everybody I'll really appreciate your help on this as I'm trying to sent a simple email and I can not here is my config.yml
    transport: sendmail
    host:      /usr/bin/sendmail
    username:  %mailer_user%
    password:  %mailer_password%
        type: file
        path: "%kernel.cache_dir%/swiftmailer/spool"
I see the emails keep on spool and they are never released Event after enter this command in console php app/console swiftmailer:spool:send --env=prod /*for more details here is my controller code*/
        $message = \Swift_Message::newInstance()
            ->setSubject('Hello Email')
                    array('name' => $name)
This does not throw any exception but the emails are not sent I think my knowledge is not enough to see the cause Thanks a lot in advance Cheers
3 Answers

Did you get some answer for this? I'm in the same boat!!

I too would like an answer to this question.

Have another answer? Share your knowledge.