php怎么用mail函数向qq发邮件
<?php$name=$_post['name'];
$email=$_post['email'];
$feedback=$_post['feedback'];
$toaddress="459676803@
$subject="feedback from web site";
$mailcontent="name:".$name."\n"."email:".$email."\n"."comments:".$feedback."\n";
$fromaddress="from: me@ ";
mail($toaddress,$subject,$mailcontent,$fromaddress);
?>
<html>
<head><title>bob' auto pars-feedback</title></head>
<body>
<h1>feedback submitter</h1>
<p>your feedback has been sent.</p>
</body>
</html>
php.ini已经配置成:[mail function]
; For Win32 only.
SMTP = smtp.
smtp_port = 25
提示错误: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 D:\AppServ\www\processfeedback.php on line 10
feedback submitter
your feedback has been sent.