Extension yii-mail getting error code 220

Hi Friends.

I am trying to use this extension to send emails::


I am using a local smtp server at my work.

I tryed this conf. at main.php:

'mail' => array(

        'class' => 'ext.yii-mail.YiiMail',





            // or email@googleappsdomain.com





        'viewPath' => 'application.views.mail',

        'logging' => true,

        'dryRun' => false


and this is the controller code i am trying to use:

$message->setBody('My body text');

$message->setSubject('Test Subject');


$message->from = 'report@el.com.br';


I received this error:


Expected response code 220 but got code "", with message ""

Please someone help me.


Hi guys.

I discovered the error. When I got the application to the server it worked beautifully. Probably the problem was a firewall filter preventing my local machine that connects to the SMTP server.