this is my config/main.php file
‘mail’ => array(
'class' => 'ext.yii-mail.YiiMail',
'transportType'=>'smtp',
'transportOptions'=>array(
'host'=>'smtp.mail.yahoo.com',
'username'=>'neerav.motta@yahoo.co.in',//contohna nama_email@yahoo.co.id
'password'=>'******',
'port'=>'465',
'encryption'=>'ssl',
),
'viewPath' => 'application.views.mail',
'logging' => true,
'dryRun' => false
),
this is Controller file
$message = new YiiMailMessage;
$message->setBody('<p>hello how are you haaa</p>' , 'text/html');
$message->subject = 'My Subject';
$message->addTo('neerav.motta@gmail.com');
$message->from = Yii::app()->params['adminEmail'];
Yii::app()->mail->send($message);
I am getting an error fsockopen() [<a href=‘function.fsockopen’>function.fsockopen</a>]: unable to connect to ssl://smtp.mail.yahoo.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
how to config the file and to active SMTP menu from your account
thanking you