Skip to content

Instantly share code, notes, and snippets.

@teriyakisan
Created September 25, 2012 08:32
Show Gist options
  • Save teriyakisan/3780649 to your computer and use it in GitHub Desktop.
Save teriyakisan/3780649 to your computer and use it in GitHub Desktop.
cakePHP2のShellでメール送信する内容を標準出力する
/** output check code **/
App::uses('Controller', 'Controller');
$this->controller = new Controller();
$this->controller->autoLayout = null;
$this->controller->autoRender = null;
$this->controller->output = null;
$this->controller->response = new CakeResponse();
$this->controller->set($content);
echo $this->controller->render('Emails/text/XXXXXXXXXX');
exit();
/** /output check **/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment