Created
April 2, 2014 18:13
-
-
Save peterjmit/9939846 to your computer and use it in GitHub Desktop.
Revisions
-
peterjmit revised this gist
Apr 2, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ <?php $mailer = $this->getContainer()->get('mailer'); $message = new \Swift_Message(); -
peterjmit created this gist
Apr 2, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ <?php $mailer = $this->get('mailer'); $message = new \Swift_Message(); $message->setBody(''); $message->setSubject(''); $message->setTo(''); $message->setFrom(''); $mailer->send($message); $spool = $mailer->getTransport()->getSpool(); // flush the spool if we are in developer mode if ($spool instanceof \Swift_MemorySpool) { $transport = $this->getContainer()->get('swiftmailer.transport.real'); $spool->flushQueue($transport); }