阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
问题:PHP 发邮件的例子
问题:PHP 发邮件的例子 X0\O3l*j $>if@}u http://now.net.cn/support/host/phpmail.net =*2_B~` ^UJB%l <? =Pj+^+UM if($send){ I!-"SuBy4J $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; Yf&P|Iiw $result=mail($to,$subject,$body,$hearer); d-%bRGo/ if($result) "|k 4<"] echo "邮件已成功发送"; FUTD/y]Lu } tRC*@>I$ ?>
vIzREu|5 <html> gPT<%F <body> B
r`a;yT <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> 3:]c>GPQ <form method="post"> nXRT%[o
& <tr bgcolor="#E7E7CB"> ),!1B% <td width="20%" height="26">发件人:</td> [uLwr$N<%L <td width="80%"><input name="from" type="text"></td> IoAG!cS </tr> a*kvU"] <tr bgcolor="#E7E7CB"> \img
<td height="25">收件人:</td> @'AjEl:&-_ <td><input name="to" type="text"></td> a]S0|\BkN </tr> ; <NK <tr bgcolor="#E7E7CB"> .D8|_B <td height="24">邮件标题:</td> ]Y.GU7` <td><input name="subject" type="text" size="50"></td> d8!yV~Ka </tr> 14DHU <tr bgcolor="#E7E7CB"> iZ( U] <td height="27">邮件内容:</td> *DUP$@}k <td><textarea name="body" cols="60" rows="10"></textarea></td> gVscdg5 </tr> !'qY <tr bgcolor="#E7E7CB"> ?:AD&Dn <td height="28"> </td> FL|\D <td> )Vf!U
" <input type="hidden" value="1" name="send"> Y
n7z#bu <input type="submit" name="Submit" value="提交"> V1-URC24vd <input type="reset" name="Submit2" value="重置"></td> +Y!
P VMF </tr> pf8M0,AY </form> `
EdZ </table> A)%!9i) </body> xg;I::hE7X </html>
|
|
[楼 主]
|
Posted: 2006-04-03 09:26 |
| |