diff --git a/cake/libs/controller/components/email.php b/cake/libs/controller/components/email.php index 9663d4ace..273d494c8 100644 --- a/cake/libs/controller/components/email.php +++ b/cake/libs/controller/components/email.php @@ -360,7 +360,7 @@ class EmailComponent extends Object{ $viewClass = $viewClass . 'View'; loadView($this->Controller->view); } - $View = new View($this->Controller); + $View = new $viewClass($this->Controller); $View->layout = $this->layout; $msg = null;