used zend Mail with yii~~~~terrible

I use zend Mail .The error Msg look at the pic.



My PHP code is:

require_once 'Zend/Mail/Transport/Smtp.php';


            $config = array('auth' => 'login',

            'username' => '270464839',

            'password' => '******');

            $transport = new Zend_Mail_Transport_Smtp('', $config);

            $mail = new Zend_Mail();

            $mail->setBodyText('This is the text of the mail.');

            $mail->setFrom('', 'Some Sender');

            $mail->addTo('', 'Some Recipient');



And the file is existing!

what’s the problem?


IMHO you have to register Zends autoloader

The problem is that you don’t import the directory where you have Zend.

Import it like this:


require_once 'Zend/Mail/Transport/Smtp.php';

It’s not really necessary to make use of an autoloader - unless you are using a lot of Zend…

TKS~~for you reply.

I think the problem is I have to register Zends autoloader