阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
问题:PHP 发邮件的例子
问题:PHP 发邮件的例子 oc?VAF Tld{b http://now.net.cn/support/host/phpmail.net "N;|~S)w! !`Wu LhB` <? Xgm7>=l if($send){ M1i|qjb:l $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; xWMMHIu $result=mail($to,$subject,$body,$hearer); {xr]xcM'b if($result) ~Mx
fud echo "邮件已成功发送"; ~DD/\V } ~:@H6Ke[ ?> WAEKvM4*i0 <html> )eFK@goGeb <body> s6$3[9Vh&9 <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> y{N9.H2 <form method="post"> JjmL6(*ui <tr bgcolor="#E7E7CB"> g DhwJks <td width="20%" height="26">发件人:</td> {
nV zN( <td width="80%"><input name="from" type="text"></td> %L/=heBBd </tr> VtO+=mZV <tr bgcolor="#E7E7CB"> {G}HZv%S U <td height="25">收件人:</td> ST3qg6Cq2J <td><input name="to" type="text"></td> B'Wky>5) </tr> 1@WGbORc* <tr bgcolor="#E7E7CB"> {ZcZ\Q;6 <td height="24">邮件标题:</td> I?K0b
s+6 <td><input name="subject" type="text" size="50"></td> 3\{Sf /# </tr> p[b\x_0%c <tr bgcolor="#E7E7CB"> +RkY
W*|$S <td height="27">邮件内容:</td> ]c)SVn$6 <td><textarea name="body" cols="60" rows="10"></textarea></td> `9ox?|iJ </tr> -?W@-*J <tr bgcolor="#E7E7CB"> aM~f
Rra7 <td height="28"> </td> `y`xk<q <td> qj&)w9RLJE <input type="hidden" value="1" name="send"> HhvG#Sam! <input type="submit" name="Submit" value="提交"> Z=0W@_s <input type="reset" name="Submit2" value="重置"></td> hptuTBD </tr> K_QCYS
. </form> ;X(n
3F </table> $1+K}tP </body> Z+"&{g </html>
|
|
|
|
[楼 主]
|
Posted: 2006-04-03 09:26 |
| |