hello i, newer in Yii i attach YIIuser modules in my web sites try to config my mail server but they show below error.
PHP warning
mail() [<a href=‘function.mail’>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
E:\wamp\www\newuser\protected\modules\user\UserModule.php(210)
198 }
199 return self::$_admins;
200 }
201
202 /**
203 * Send mail method
204 */
205 public static function sendMail($email,$subject,$message) {
206 $adminEmail = Yii::app()->params[‘adminEmail’];
207 $headers = "MIME-Version: 1.0\r\nFrom: $adminEmail\r\nReply-To: $adminEmail\r\nContent-Type: text/html; charset=utf-8";
208 $message = wordwrap($message, 70);
209 $message = str_replace("\n.", "\n…", $message);
210 return mail($email,’=?UTF-8?B?’.base64_encode($subject).’?=’,$message,$headers);
211 }
212
213 /**
214 * Return safe user data.
215 * @param user id not required
216 * @return user object or false
217 */
218 public static function user($id=0) {
219 if ($id)
220 return User::model()->active()->findbyPk($id);
221 else {
222 if(Yii::app()->user->isGuest) {
.how i solve this
instruction please