1
PHP的郵件功能工作不Yii框架工作www.test.com/index.php?r=EmailPHP的郵件功能是不是在警予
class EmailController extends Controller {
public function actionIndex(){
$this->sendEmail();
}
public function sendEmail(){
mail('[email protected]', 'hello', 'today i am very unhappy');
}
}
但郵件功能是工作在簡單的文件例如WWW .test.com/email-test.php
檢查您的配置文件,您可能在框架工作中關閉了電子郵件。 – 2013-03-21 13:12:44
Yii無法更改郵件功能行爲,您的問題在別處......您確定您在'email-test.php'中使用相同的代碼嗎?你確定它是相同的PHP配置? – soju 2013-03-21 13:39:37
是的兄弟我相信....... – 2013-03-21 13:40:13