title: CakePHP email - Call to a member function subject() on a non-object
body: <p>My application sends emails fine on local (using amazon ses), but fails on remote (a digitalocean server with a barebones LAMP).</p>
  
  <p>The following code yields the message in the title of this question.</p>
  
  <pre><code>public function test() {
              $this-&gt;autoRender = false;
              App::uses('CakeEmail', 'Network/Email');
              $email = new CakeEmail('transport');
              $email-&gt;template('welcome', 'default')
                      -&gt;emailFormat('both')
                      -&gt;to('recpt@domain.com')
                      -&gt;from('sender@domain.com')
                      -&gt;subject(__('A subject'))
                      -&gt;send();
  }
  </code></pre>
  
  <p>Any input would be greatly appreciated.</p>