阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
问题:PHP 发邮件的例子
问题:PHP 发邮件的例子 vLT0ETHg6 J00VTb` http://now.net.cn/support/host/phpmail.net o-C#|t3hH x,n,Qlb <? IkPN?N if($send){ 7zemr>sIh $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; fC
WGAO2 $result=mail($to,$subject,$body,$hearer); QDx$==Fo if($result)
Q~{H@D`< echo "邮件已成功发送"; n'1'!J;Q } %]2,& ?> {)8>jxQN <html> @p 6<Lw_E <body> Jl3g{a <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> kF"@Ngv. <form method="post"> 'Ft0Ry<OL <tr bgcolor="#E7E7CB"> p Z: F:
<td width="20%" height="26">发件人:</td> Uu 8,@W+ <td width="80%"><input name="from" type="text"></td> gKYfQ+ </tr> -i yyn^| <tr bgcolor="#E7E7CB"> 2;a(8^n <td height="25">收件人:</td> }|u4 W?H <td><input name="to" type="text"></td> KG
H/^!u+R </tr> ,I1RV <tr bgcolor="#E7E7CB"> #S&Tkip]"W <td height="24">邮件标题:</td> Szbb_i{_
` <td><input name="subject" type="text" size="50"></td> 3b' QLfU </tr> Bp8'pj;~ <tr bgcolor="#E7E7CB"> 3RLFp\i"s <td height="27">邮件内容:</td> [W%$qZlP <td><textarea name="body" cols="60" rows="10"></textarea></td> @=}YTtq </tr> OQW#a[=WQ <tr bgcolor="#E7E7CB"> 5?
hw ! <td height="28"> </td> N
(I& <td> ):i&`}SY <input type="hidden" value="1" name="send"> LaQ-=;(` <input type="submit" name="Submit" value="提交"> /"eey(X <input type="reset" name="Submit2" value="重置"></td> ZovW0Q)m </tr> {} 3${ </form> ;\f gF@ </table> (p2K36,9m </body> ZosP(Tdq </html>
|
|
|
|
[楼 主]
|
Posted: 2006-04-03 09:26 |
| |