求教关于在window xp下自己搭建的PHP环境mail发送邮件的问题! 我想在xp下用自己搭建的php测试环境测试php自身的mail函数,我在本地做了hosts映射一个假的域名,装了一个winwebmail的smtp服务器,不知道为什么就是发送不成功,不知道是怎么回事。php代码如下
<?php
$mailTo = "xxxxx@qq.com";
$mailSubject="Just a test Mail!";
$mailBody="This is a test of PHP`s mail function.";
$mailBody.="It was generated by PHP version.";
$mailHeaders="From:admin@system.mail";
$a = mail($mailto,$mailSubject,$mailBody,$mailHeaders);
if($a)
{
echo "Mail uccessfully sent!";
}
else
{
echo "Error in sending mail!";
}
?>
各位大神可以指点下不???