Warning: session_start() [function.session-start]: open(/home/mybwtech/public_html/article/tmp/sess_2f0fdcad7b2e9fdd2337b0481d4c2910, O_RDWR) failed: No such file or directory (2) in /home/mybwtech/public_html/article/global.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/mybwtech/public_html/article/global.php:3) in /home/mybwtech/public_html/article/global.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mybwtech/public_html/article/global.php:3) in /home/mybwtech/public_html/article/global.php on line 3
用PHP 发邮件例程 ,欢迎参考 - 龙舞天翔资源共享
我的控制台 会员登陆 免费注册 最后更新 高级搜索 返回首页 我要投稿 退出登陆 龙舞论坛
当前在线: 0
 
站内搜索
Google
www.bwtech.net

德州扑克资料
投资透视
网站优化推广&SEO
网站设计
网络编程语言与开发
课件开发制作
网络文学
小资生活
数码摄影
财经-经营管理
其他杂项
龙舞天翔资源共享 / 网络编程语言与开发 / PHP语言技术 / 用PHP 发邮件例程 ,欢迎参考
用PHP 发邮件例程 ,欢迎参考
2005-05-01          点击: 1682
用PHP 发邮件例程 ,欢迎参考
 **
     
     目前我采用的空间是PHP+MYSQL类型的,有关于PHP方面的编程问题,欢迎一起讨论
     我写了一段PHP邮件例程也在下面,供参考:
     
     例程如下:
     <?
     if($send){
     $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html";
     $result=mail($to,$subject,$body,$hearer);
     if($result)
     echo "邮件已成功发送";
     }
     ?>
     <html>
     <body>
     <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF">
     <form method="post">
     <tr bgcolor="#E7E7CB">
     <td width="20%" height="26">发件人:</td>
     <td width="80%"><input name="from" type="text"></td>
     </tr>
     <tr bgcolor="#E7E7CB">
     <td height="25">收件人:</td>
     <td><input name="to" type="text"></td>
     </tr>
     <tr bgcolor="#E7E7CB">
     <td height="24">邮件标题:</td>
     <td><input name="subject" type="text" size="50"></td>
     </tr>
     <tr bgcolor="#E7E7CB">
     <td height="27">邮件内容:</td>
     <td><textarea name="body" cols="60" rows="10"></textarea></td>
     </tr>
     <tr bgcolor="#E7E7CB">
     <td height="28"> </td>
     <td>
     <input type="hidden" value="1" name="send">
     <input type="submit" name="Submit" value="提交">
     <input type="reset" name="Submit2" value="重置"></td>
     </tr>
     </form>
     </table>
     </body>
     </html>
责任编辑: 龙舞天翔

相关文章
关于phpArticle后台无法登陆的问题 - 02-24 10:23 am - 点击: 481
php 实现无限分类 - 07-14 01:25 am - 点击: 1496
ASP,PHP,JSP各自的优点和缺点 - 03-05 10:47 pm - 点击: 2068
提升PHP速度全攻略 - 02-09 04:42 am - 点击: 1379
PHP:路在何方? - 02-09 04:37 am - 点击: 1425
PHP编码规范 - 02-09 04:33 am - 点击: 1266
PHP简介 - 02-09 04:31 am - 点击: 1680
回顾 PHP 5.0 的变化与PHP 6.0 展望 - 02-08 10:23 pm - 点击: 1448
phpArticle 首页分类调用较完美解决方案 - 12-14 05:07 am - 点击: 1577
phpArticle防止图片盗链的方法 - 12-11 11:04 am - 点击: 1616

发表评论 查看评论 加入收藏 Email给朋友 打印本文
如果你想对该文章评分, 请先登陆, 如果你仍未注册,请点击注册链接注册成为本站会员.
平均得分 0, 共 0 人评分
1 2 3 4 5 6 7 8 9 10
Copyright © 2002 -2003 龙舞天翔资源共享
All rights reserved.
Powered by: phpArticle Version 2.0

Warning: Unknown: open(/home/mybwtech/public_html/article/tmp/sess_2f0fdcad7b2e9fdd2337b0481d4c2910, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/mybwtech/public_html/article/tmp) in Unknown on line 0