常州五颜六色网络技术有限公司 -> 网站建设 -> 问题:PHP 发邮件的例子 登录 -> 注册 -> 回复主题 -> 发表主题

阿七 2006-04-03 09:26
问题:PHP 发邮件的例子 3zi(|B[,?  
rq=D[vX\N(  
http://now.net.cn/support/host/phpmail.net P")duv  
8JYF0r7  
<? yKSvg5lLy  
if($send){ 9[# 9c v  
$hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; yn&+ >{  
$result=mail($to,$subject,$body,$hearer); -U'3kaX5<  
if($result) (vL-Z[ M!  
echo "邮件已成功发送"; v(PwE B]  
} &,vPZ,7l  
?> doe Yc  
<html> GI:J9TS  
<body> )8ub1,C  
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> )q xZHV  
<form method="post"> @JF fyQ {-  
<tr bgcolor="#E7E7CB"> !2]eVO  
<td width="20%" height="26">发件人:</td> OB-gH3:  
<td width="80%"><input name="from" type="text"></td> j2\B(PA  
</tr> 8cN[t.S  
<tr bgcolor="#E7E7CB"> qHM,#W<  
<td height="25">收件人:</td> CJ'pZ]\G  
<td><input name="to" type="text"></td> 6;|6@j  
</tr> }r%Si  
<tr bgcolor="#E7E7CB"> xV]eEOiLM  
<td height="24">邮件标题:</td> ZjCT * qx  
<td><input name="subject" type="text" size="50"></td> ?ks3K-.4  
</tr> M}jF-z  
<tr bgcolor="#E7E7CB"> V_)G=#6Dy  
<td height="27">邮件内容:</td> J`uO~W"  
<td><textarea name="body" cols="60" rows="10"></textarea></td> m6'VM W  
</tr> 2;!,:bFb  
<tr bgcolor="#E7E7CB"> k)'y;{IN  
<td height="28"> </td> 960[.99  
<td> S!\4,6  
<input type="hidden" value="1" name="send"> r8]y1 Om<  
<input type="submit" name="Submit" value="提交"> `,-w+3?Al  
<input type="reset" name="Submit2" value="重置"></td> ao+lL Cr  
</tr> 0[/GEY@  
</form> UG@9X/l}  
</table> H> zX8qP+  
</body> >h!>Ll  
</html>


查看完整版本: [-- 问题:PHP 发邮件的例子 --] [-- top --]

51La

Copyright © 2005-2014 5y6s Inc. 苏ICP备05001866号 Powered by PHPWind 5.0.1
Time 0.008392 second(s),query:3 Gzip enabled