Call to undefined method My_email::from()
<p>I have a problem creating a test library to send email. This is my code:</p>

<pre><code>class My_email {

    public function my_send_mail() {

        $CI =&amp; get_instance();
        $CI-&gt;load-&gt;library('email');

        $CI-&gt;email-&gt;from('xxx@xxx.com', 'Sender name');
        $CI-&gt;email-&gt;to('yyy@yyy.com');
        $CI-&gt;email-&gt;subject('Test');
        $CI-&gt;email-&gt;message('Testing');

        return $CI-&gt;email-&gt;send();

    }
 }
</code></pre>

<p>I get the error:</p>

<pre><code>Call to undefined method My_email::from()
</code></pre>
