hi all,
I"m new to yii… I’m trying to send email to adminEmail (which is in config/main.php). I’m trying this on mamp with yii.
i’ve downloaded emailer extension and added this in components array of config/main.php.
in my controller i’ve written like this
$message = ‘msg msg testing’;
Yii::app()->mailer->Host = 'smtp.yiiframework.com';
Yii::app()->mailer->IsSMTP();
Yii::app()->mailer->FromName = 'dev';
Yii::app()->mailer->From = 'dev@dev.com';
//Yii::app()->mailer->AddReplyTo('dev@dev.com');
Yii::app()->mailer->AddAddress('dev@dev.com');
Yii::app()->mailer->Subject = 'ding ding sub';
Yii::app()->mailer->Body = $message;
Yii::app()->mailer->Send();
its not working from my local machine …whats going wrong here??
im working on mamp and i did not change anything in php.ini file…do i need to change any??