Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\AppServ\www\48010913193\forgetpassword2.php on line 18
ไม่สามารถส่งรหัสผ่านไปทางอีเมล์ได้
ซึ่งมี code ดังนี้ค่ะ
Code PHP
<?php
$user_forget = $_POST[user_forget];
include("connect/connect_db.php");
$sql="select * from member where mem_username='$user_forget' ";
$result=mysql_query($sql);
$num=mysql_num_rows($result);
$record=mysql_fetch_array($result);
$to=$record[mem_email];
$password=$record[mem_password];
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\AppServ\www\48010913193\forgetpassword2.php on line 18