Created
March 18, 2011 15:18
-
-
Save jaredhoyt/876242 to your computer and use it in GitHub Desktop.
Shell using Email Component
This file contains 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 characters
<?php | |
App::import('Core', 'Controller'); | |
App::import('Component', 'Email'); | |
class ExampleShell extends Shell { | |
function main() { | |
$this->Controller =& new Controller(); | |
$this->Email =& new EmailComponent(null); | |
$this->Email->initialize($this->Controller); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment