Created
June 7, 2013 17:21
-
-
Save marufsiddiqui/5730875 to your computer and use it in GitHub Desktop.
How do I test an HTML Email Template on CakePHP?
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
function email_test() | |
{ | |
$this->layout = 'email/html/default'; | |
$user = $this->User->findById(1); | |
$this->set('name', $user['User']['firstname']); | |
$this->set('email_heading', 'Welcome to My App'); | |
return $this->render('/elements/email/html/welcome'); | |
} | |
// Source http://stackoverflow.com/questions/12501561/how-do-i-test-an-html-email-template-on-cakephp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment