This is CakePHP 1.3, but I feel it can work well with 2.0 too. Although there may be other ways to do this, I do by creating a test action in any controller, and then return a call to render the email template. Check this:
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'); }
This action will now display your email in the browser.
Eric source share