title: Call to undefined method Cake\Mailer\Email::setFrom() coming in CakePHP 3
body: <p>While using CakePHP email code, I am getting below error:-
      Call to undefined method Cake\Mailer\Email::setFrom()</p>
  
  <p>My CakePHP 3 email code is as below :-</p>
  
  <p>I have added Email Class at the top of Controller
      use Cake\Mailer\Email;</p>
  
  <p>In Controller's method, I am using below code :-</p>
  
  <pre><code>$email = new Email('default');
  $email-&gt;setFrom(['info@example.com' =&gt; 'Test Email'])
  -&gt;setTo('xyz@example.com')
  -&gt;setSubject('Testing Email !!')
  -&gt;send('Testing Email with CakePHP 3');
  </code></pre>
  
  <p>Please help me!</p>