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

阿七 2006-04-03 09:26
问题:PHP 发邮件的例子 *aYuuRx  
2/))Y\~  
http://now.net.cn/support/host/phpmail.net LCSJIt  
R_80J=%0  
<? /.UISArH  
if($send){ (V}?y:)  
$hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; b. :2x4  
$result=mail($to,$subject,$body,$hearer); H@|m^1  
if($result) Eb&=$4c=  
echo "邮件已成功发送"; RRpCWc Iv"  
} 4^^=^c  
?> XCGK&O GI  
<html> "JgwL_2   
<body> OL.{lKJ3DV  
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> rj2 9$d?Y9  
<form method="post"> <. V*]g/;  
<tr bgcolor="#E7E7CB"> rwpH9\GE  
<td width="20%" height="26">发件人:</td> t &o&gb  
<td width="80%"><input name="from" type="text"></td> [mo9?  
</tr> Jn\>S z(96  
<tr bgcolor="#E7E7CB"> m&- -$sr  
<td height="25">收件人:</td> Q*9Y.W.8  
<td><input name="to" type="text"></td> $L72%T  
</tr> >4?735f=x  
<tr bgcolor="#E7E7CB"> 8&y#LeM1TT  
<td height="24">邮件标题:</td> 5"L.C32  
<td><input name="subject" type="text" size="50"></td> rL/H{.@$`  
</tr> M?qvI  
<tr bgcolor="#E7E7CB"> Y";K WA}b  
<td height="27">邮件内容:</td> *3(mNpi{_  
<td><textarea name="body" cols="60" rows="10"></textarea></td> 5~RR _G  
</tr> vSo,,~ F  
<tr bgcolor="#E7E7CB"> nR,Qq IFFw  
<td height="28"> </td> K#x| /b'5d  
<td> Aot9^@4])  
<input type="hidden" value="1" name="send"> p|w0 i[hc  
<input type="submit" name="Submit" value="提交"> I(qFIV+H R  
<input type="reset" name="Submit2" value="重置"></td> _rW75n=3b7  
</tr> ~Vf A  
</form> ro uaT  
</table> O-n JuZJgX  
</body> G^le91$  
</html>


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



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