Skip to content
Browse files

Adding option to parser for email config

  • Loading branch information...
1 parent b66e6c7 commit 4d66717d93019f58d6587e94439dee789bc8147b @lorenzo lorenzo committed Jun 20, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 Console/Command/SenderShell.php
View
6 Console/Command/SenderShell.php
@@ -1,6 +1,7 @@
<?php
App::uses('Shell', 'Console');
+App::uses('CakeEmail', 'Network/Email');
class SenderShell extends Shell {
@@ -23,6 +24,11 @@ public function getOptionParser() {
'help' => 'Name of the layout to be used to wrap template',
'default' => 'default'
))
+ ->addOption('config', array(
+ 'short' => 'c',
+ 'help' => 'Name of email settings to use as defined in email.php',
+ 'default' => 'default'
+ ))
->addSubCommand('clearLocks', array(
'help' => 'Clears all locked emails in the queue, useful for recovering from crashes'
));

0 comments on commit 4d66717

Please sign in to comment.
Something went wrong with that request. Please try again.