Extension yii-mail getting error code 220

Hi Friends.

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

http://www.yiiframework.com/extension/mail

I am using a local smtp server at my work.

I tryed this conf. at main.php:


'mail' => array(

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

        'transportType'=>'smtp',

        'transportOptions'=>array(

            'host'=>'hmail.el.com.br',

            'username'=>'',

            // or email@googleappsdomain.com

            'password'=>'',

            'port'=>'25',

            //'encryption'=>'ssl',

            ),

        '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->setTo('somevaliduser@el.com.br');

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

Yii::app()->mail->send($message);

I received this error:

Swift_TransportException

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

Please someone help me.

Thanks.

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.

:D