Skip to content

Instantly share code, notes, and snippets.

@jaredhoyt
Created March 18, 2011 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredhoyt/876242 to your computer and use it in GitHub Desktop.
Save jaredhoyt/876242 to your computer and use it in GitHub Desktop.
Shell using Email Component
<?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