阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
问题:PHP 发邮件的例子
问题:PHP 发邮件的例子 fYU/Jn# d%VG@./xq http://now.net.cn/support/host/phpmail.net ^vmT=f;TM 0PO'9# <? rlTCVmE
8[ if($send){ n:d]Z2b $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; IH8^ fyQ` $result=mail($to,$subject,$body,$hearer); %>B?WR\yE if($result) gp'9Pf;\[ echo "邮件已成功发送"; 3;(;'
5|Z } I:l<t* ?> Nr)v!z~y
<html> pwAawm <body> bE:oF9J? <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> SRs1t6&y= <form method="post"> 6p`AdDV <tr bgcolor="#E7E7CB"> }9yAYZ0q{b <td width="20%" height="26">发件人:</td> Y^DS~CrM <td width="80%"><input name="from" type="text"></td> %&m/e?@%I </tr> m`luMt9 <tr bgcolor="#E7E7CB"> 1FCqkwq[ <td height="25">收件人:</td> 6vp\~J <td><input name="to" type="text"></td> H0<(j(JK </tr>
no(or5UJ <tr bgcolor="#E7E7CB"> TPn#cIPG <td height="24">邮件标题:</td> @rS(3wu_& <td><input name="subject" type="text" size="50"></td> zvn3i5z </tr> jJD*s/o <tr bgcolor="#E7E7CB"> !j
/54, <td height="27">邮件内容:</td> ,AH2/^:%c <td><textarea name="body" cols="60" rows="10"></textarea></td> ^Rh}[ </tr> +DaKP)H\: <tr bgcolor="#E7E7CB"> 7c!#e=W@B <td height="28"> </td> mFmx
Ev <td> Fl!D2jnN <input type="hidden" value="1" name="send"> _
glB<r$ <input type="submit" name="Submit" value="提交"> t +|t/1s2 <input type="reset" name="Submit2" value="重置"></td> 1\J9QZX0 </tr> 29zMs9oKPP </form> yL %88,/ </table> <cO
`jK </body> kGAB' </html>
|
|
[楼 主]
|
Posted: 2006-04-03 09:26 |
| |