public function build()
 {
     $vars = $this->getVars();
     parent::build();
     $this->_email = Configure::read('Email.username');
     $this->updateVars(array('subject' => sprintf("New Package: %s/%s", $vars['username'], $vars['repository']), 'template' => 'suggest_package', 'variables' => array('ipaddress' => $vars['ipaddress'], 'username' => $vars['username'], 'repository' => $vars['repository'])));
 }
 public function build()
 {
     $vars = $this->getVars();
     parent::build();
     $this->_email = $vars['userData']['User']['email'];
     $this->updateVars(array('subject' => '[CakePackages] ' . __('Account verification'), 'template' => 'account_verification', 'variables' => array('userData' => $vars['userData'])));
 }
 public function build()
 {
     $vars = $this->getVars();
     parent::build();
     $activationKey = $this->User->changeActivationKey($vars['user']);
     $this->_email = $vars['user']['email'];
     $this->updateVars(array('subject' => '[CakePackages] ' . __('Reset Password'), 'template' => 'forgot_password', 'variables' => array('ipaddress' => $vars['ipaddress'], 'username' => $vars['user']['username'], 'activationKey' => $activationKey)));
 }