Yii-Mail Extension Problem With Gmail Smtp

Hi everyone,

I’m using yii-mail extension.

This is part of config/main.php

                // yii-mail extension

                'mail' => array(

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

                    'transportType' => 'smtp',

                    'transportOptions' => array(

                        'host' => 'smtp.gmail.com',

                        'encryption' => 'ssl',

                        'username' => 'myaccount@gmail.com',

                        'password' => 'mypassword',

                        'port' => 465,


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


and all works fine using wampserver (localhost)

But online I guess there is some server configuration that block this activity. Of course I’ve contacted hosting support, but I would to know if there are some PHP extensions/modules to activate…


Do you get any errors (check the runtime log if you have error logging enabled)?