Closed bassrock closed 8 years ago
Ok so the issue has to do with the kernel. The jobs do not terminate the kernel which calls the terminate listener to actually send the email in the memory.
I had to add
$this->getContainer()->get('kernel')->terminate(new Request(), new Response());
After this mail sent fine. Is there a way to add the kernel events/triggers to the Jobs?
You should release the mailer spool yourself http://stackoverflow.com/questions/13122096/unable-to-send-e-mail-from-within-custom-symfony2-command-but-can-from-elsewhere
I am currently having an issue where the Symfony 2 Mailer service does not seem to be sending email messages in the memory spool when sent from inside a job.
Anyone else seeing this or see why this would be the case?