This is the first time I use mail() in php to send email,but failed,my program is
<?
$message="abcdefghijklmnopqrstuvwxyz";
$message="abcdefghijklmnopqrstuvwxyz";
$a=mail("afcn0@xxxxxxxxxxxx", "没有主题", $message, "From: Mailer:PHP/");
if ($a)
echo "ok";
else
echo "fail";
if ($a)
echo "ok";
else
echo "fail";
?>
on fc4 it show ok,but i didn't recieve any emails,
and on win xp sp2 i also failed it tellme "Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for afcn0@xxxxxxxxxxxx in d:\usr\www\html\aaa1.php on line 4
fail "
and on win xp sp2 i also failed it tellme "Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for afcn0@xxxxxxxxxxxx in d:\usr\www\html\aaa1.php on line 4
fail "
tell me why,and how to use this function to send mail,btw i close all firewalls
DO YOU YAHOO!?
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱