阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
问题:PHP 发邮件的例子
问题:PHP 发邮件的例子 yGRR8F5>( wqcDAO( http://now.net.cn/support/host/phpmail.net V>6QPA^ 2v4W6R <? )W#T2Z>N1 if($send){ S,XKW(5 $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; 46ILs1T6 $result=mail($to,$subject,$body,$hearer); >8%M*-=p if($result) KVg[#~3 echo "邮件已成功发送"; _w
mI(+_ } ?5`{7daot ?> *u}'}jC1X <html> \Fq1^ 8qa <body> <Kg2$lu(_` <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> eap8*ONl <form method="post"> _p0)vT <tr bgcolor="#E7E7CB"> >:A<"wZ <td width="20%" height="26">发件人:</td>
7H4L-J3 <td width="80%"><input name="from" type="text"></td> ]Y{,Nx </tr> #,TELzUVE <tr bgcolor="#E7E7CB"> /p,{?~0mj <td height="25">收件人:</td> 0t+])> <td><input name="to" type="text"></td> g>_OuQ|c </tr> /22nLc;/Cx <tr bgcolor="#E7E7CB"> VNO'="U <td height="24">邮件标题:</td> ';Nu&D#Ph <td><input name="subject" type="text" size="50"></td> 1 =^ </tr> (vnoP< 0
<tr bgcolor="#E7E7CB"> O:._W< <td height="27">邮件内容:</td> F_v-}bbcFQ <td><textarea name="body" cols="60" rows="10"></textarea></td> 7*/J4MN </tr> `w+1C&>^[ <tr bgcolor="#E7E7CB"> -x{&an= <td height="28"> </td> F\-Si!~oOz <td> {yS;NU`2 <input type="hidden" value="1" name="send"> 7E\g
&R. <input type="submit" name="Submit" value="提交"> <aXoB*Y
<input type="reset" name="Submit2" value="重置"></td> l
sr?b </tr> j`9Qzi1 </form> Bzw19S6y </table> ^BiPLQ
</body> xNIGO/uI~ </html>
|
|
[楼 主]
|
Posted: 2006-04-03 09:26 |
| |