阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
问题:PHP 发邮件的例子
问题:PHP 发邮件的例子 +Tnn'^4 4+fWIY1
" http://now.net.cn/support/host/phpmail.net L+s3@C;b dQSX&.<c, <? `9IG/
/ if($send){ IKT3T_\-I $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; |X :"AH"S $result=mail($to,$subject,$body,$hearer); 8KH|:
>s= if($result) E1 )7gio echo "邮件已成功发送"; J&mZsa)4 } u >R2:i ?> 0Z. b
d=H <html> +6dq+8msF <body> E0 ~\ A; <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> !Z f<
j <form method="post"> <Lz/J-w <tr bgcolor="#E7E7CB"> 8|FHr, <td width="20%" height="26">发件人:</td> Aj9<4N <td width="80%"><input name="from" type="text"></td> )
YSS>V </tr> b#XY.+ *0 <tr bgcolor="#E7E7CB"> Fp3NWvu <td height="25">收件人:</td> <kJ,E[4` <td><input name="to" type="text"></td> > 93I|C| </tr> z=YHRS <tr bgcolor="#E7E7CB"> W|NT*g{;M <td height="24">邮件标题:</td> ){~]-VK <td><input name="subject" type="text" size="50"></td> )zUbMzF
</tr> Jat|n97$ <tr bgcolor="#E7E7CB"> ZboY]1L[j <td height="27">邮件内容:</td> PcxCal4 <td><textarea name="body" cols="60" rows="10"></textarea></td> >fX_zowX </tr> /EW1& <tr bgcolor="#E7E7CB"> Gp&
o <td height="28"> </td> >St]MS <td> Pl2ZA)[g <input type="hidden" value="1" name="send"> 'aLTiF+ <input type="submit" name="Submit" value="提交"> VMa\?`fT <input type="reset" name="Submit2" value="重置"></td> P LH
iQ: </tr> P&3Z,f0 </form>
OhNEt> </table> at(oepq </body> 9/LnO'&- </html>
|
|
[楼 主]
|
Posted: 2006-04-03 09:26 |
| |