| 阿七 |
2006-04-03 09:26 |
问题:PHP 发邮件的例子 *aYuuRx 2/))Y\~
http://now.net.cn/support/host/phpmail.net LCSJIt R_80J=%0 <? /.UISArH if($send){ (V}?y:) $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; b.
:2x4 $result=mail($to,$subject,$body,$hearer); H@|m^1 if($result) Eb&=$4c= echo "邮件已成功发送"; RRpCWcIv" } 4^^=^c ?> XCGK&OGI <html> "JgwL_2
<body> OL.{lKJ3DV <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> rj2
9$d?Y9 <form method="post"> <.
V*]g/; <tr bgcolor="#E7E7CB"> rwpH9\GE <td width="20%" height="26">发件人:</td> t
&o&gb <td width="80%"><input name="from" type="text"></td> [ mo9? </tr> Jn\>Sz(96 <tr bgcolor="#E7E7CB"> m&--$sr <td height="25">收件人:</td> Q*9Y.W. 8 <td><input name="to" type="text"></td> $L72%T </tr> >4?735f=x <tr bgcolor="#E7E7CB"> 8&y#LeM1TT <td height="24">邮件标题:</td> 5"L.C32 <td><input name="subject" type="text" size="50"></td> rL/H{.@$` </tr> M?qvI <tr bgcolor="#E7E7CB"> Y";KWA}b <td height="27">邮件内容:</td> *3(mNpi{_ <td><textarea name="body" cols="60" rows="10"></textarea></td> 5~RR
_G </tr> vSo,,~F <tr bgcolor="#E7E7CB"> nR,Qq
IFFw <td height="28"> </td> K#x|
/b'5d <td> Aot9^@4]) <input type="hidden" value="1" name="send"> p|w0
i[hc <input type="submit" name="Submit" value="提交"> I(qFIV+HR <input type="reset" name="Submit2" value="重置"></td> _rW75n=3b7 </tr> ~Vf
A </form> ro
uaT </table> O-n JuZJgX </body> G^le91$ </html> |
|