| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 908 人关注过本帖
标题:php怎么用mail函数向qq发邮件
取消只看楼主 加入收藏
qq459676803
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2012-2-19
结帖率:0
收藏
已结贴  问题点数:5 回复次数:0 
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.
搜索更多相关主题的帖子: head html email title 
2012-02-24 15:01
快速回复:php怎么用mail函数向qq发邮件
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.032314 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved