Created
September 25, 2012 08:32
-
-
Save teriyakisan/3780649 to your computer and use it in GitHub Desktop.
cakePHP2のShellでメール送信する内容を標準出力する
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
/** 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