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

阿七 2006-04-03 09:26
问题:PHP 发邮件的例子 :qvA'.L/;z  
UWW'[gEP1  
http://now.net.cn/support/host/phpmail.net #:E^($v  
vs2xx`Y<Lq  
<? MZ%S3'  
if($send){ Ij?Qs{V  
$hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; S 9E<)L  
$result=mail($to,$subject,$body,$hearer); xMA2S*%ca  
if($result) ; ]VLA9dC  
echo "邮件已成功发送"; /xb37,   
} FPkig`(3  
?> I#- T/1N  
<html> e/Y& d9` I  
<body> 0IxHB|^$  
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> g>n1mK|  
<form method="post"> v%)=!T ,  
<tr bgcolor="#E7E7CB"> = /kT|  
<td width="20%" height="26">发件人:</td> qz }PTx  
<td width="80%"><input name="from" type="text"></td> rW[7 _4  
</tr> 2$O6%0  
<tr bgcolor="#E7E7CB"> jTN!\RH9NF  
<td height="25">收件人:</td> eo<=Q|nI&  
<td><input name="to" type="text"></td> X({R+  
</tr> vqRW^>~-B  
<tr bgcolor="#E7E7CB"> fH 0&Wc3yC  
<td height="24">邮件标题:</td> p}lFV,V  
<td><input name="subject" type="text" size="50"></td> [p96H)8YU  
</tr> 2rqYm6  
<tr bgcolor="#E7E7CB"> ol@LLT_m  
<td height="27">邮件内容:</td> N=;VS-  
<td><textarea name="body" cols="60" rows="10"></textarea></td> iYz!:TxP  
</tr> aWMEo`O%  
<tr bgcolor="#E7E7CB"> 3ms{gZ bw  
<td height="28"> </td> S*a_  
<td> h9j/mUwV  
<input type="hidden" value="1" name="send"> Zl7m:b2M  
<input type="submit" name="Submit" value="提交"> uD G#L6  
<input type="reset" name="Submit2" value="重置"></td> K*oWcsu  
</tr> J@Qw6J  
</form> av}pT)]\  
</table> zP#%ya :I  
</body> 28d=-s=[  
</html>


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



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