title: CakeMail doesn't recognize to and viewvars functions
body: <p>In my user controller I added:</p>
  
  <pre><code>App::uses('CakeEmail', 'Network/Email');
  class UsersController extends AppController { 
        function sign_up() {
          $this-&gt;autoRender = false;
          $email = new CakeEmail('default');
  
          $email-&gt;template('sign_up');
          $email-&gt;emailFormat('html');
          $email-&gt;subject('Addience.com Sign Up');
          $email-&gt;to($this-&gt;request-&gt;query['email']);
          $email-&gt;viewVars(array('password' =&gt; $this-&gt;Password-&gt;generatePassword(), 'email' =&gt; $this-&gt;request-&gt;query['email'], 'key' =&gt; $this-&gt;Password-&gt;generateKey()));
          $email-&gt;send();
          $this-&gt;redirect('/');
      }
  
  }
  </code></pre>
  
  <p>and my email.php config file looks like:</p>
  
  <pre><code>class EmailConfig {
  
      public $default = array(
          'host' =&gt; 'ssl://smtp.gmail.com',
          'port' =&gt; 465,
          'username' =&gt; 'xxx@gmail.com',
          'password' =&gt; 'xxx',
          'from' =&gt; array('support@xxx.com' =&gt; 'xxx'),
          'transport' =&gt; 'Smtp'
      );
  }
  </code></pre>
  
  <p>However, I still getting:</p>
  
  <pre><code>Notice (8): Undefined index: email [APP\Controller\UsersController.php, line 311]
  
  Notice (8): Undefined index: email [APP\Controller\UsersController.php, line 312]
  You need specify one destination on to, cc or bcc.
  
  Error: An Internal Error Has Occurred.
  Stack Trace
  
  #0 C:\xampp\htdocs\addience\Controller\UsersController.php(314): CakeEmail-&gt;send()
  #1 [internal function]: UsersController-&gt;sign_up()
  #2 C:\xampp\htdocs\cakephp-2.0.6\lib\Cake\Controller\Controller.php(473): ReflectionMethod-&gt;invokeArgs(Object(UsersController), Array)
  #3 C:\xampp\htdocs\cakephp-2.0.6\lib\Cake\Routing\Dispatcher.php(104): Controller-&gt;invokeAction(Object(CakeRequest))
  #4 C:\xampp\htdocs\cakephp-2.0.6\lib\Cake\Routing\Dispatcher.php(86): Dispatcher-&gt;_invoke(Object(UsersController), Object(CakeRequest), Object(CakeResponse))
  #5 C:\xampp\htdocs\addience\webroot\index.php(98): Dispatcher-&gt;dispatch(Object(CakeRequest), Object(CakeResponse))
  #6 {main}
  </code></pre>
  
  <p>Why?</p>
  
  <p>Thank you!</p>