| 阿七 |
2006-04-03 09:26 |
问题:PHP 发邮件的例子 S._2..%G A(E}2iP9= http://now.net.cn/support/host/phpmail.net igA?E56? ptT-{vG <? 4;Ucas6 if($send){ U~?VN!<x[ $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; 7yyX8p> $result=mail($to,$subject,$body,$hearer); ;X<Ez5v3 if($result) $3 -QM echo "邮件已成功发送"; [%bGs1U } mA$y$73=T ?> |8CxMs <html> pZ|{p{_j <body> ?V!5VHa <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> !38KHq^|& <form method="post"> 2_HIn <tr bgcolor="#E7E7CB"> tcXXo&ZS <td width="20%" height="26">发件人:</td> b-VtQ%Q <td width="80%"><input name="from" type="text"></td> a`xAk^w+ </tr> !hq*WtIk <tr bgcolor="#E7E7CB"> vx(
$o9 <td height="25">收件人:</td> yYJ_;Va <td><input name="to" type="text"></td> Oe\(=R </tr>
"LB
MYZ <tr bgcolor="#E7E7CB"> 2T+-[}* <td height="24">邮件标题:</td> `OMX 9i <td><input name="subject" type="text" size="50"></td> 7!c
LTq </tr> r c[~S <tr bgcolor="#E7E7CB"> m_0y ]RfG <td height="27">邮件内容:</td> 1}la
)lC <td><textarea name="body" cols="60" rows="10"></textarea></td> 2
G_KTYJ </tr> M;<!C%K> <tr bgcolor="#E7E7CB"> Wr b[\
?- <td height="28"> </td> /lUfxc4
<td> V4jMx[ <input type="hidden" value="1" name="send"> *KDTB
d <input type="submit" name="Submit" value="提交"> b]z_2h~`
<input type="reset" name="Submit2" value="重置"></td> ^,I2@OS </tr> /5Qh*.(S </form> ZH\t0YhrVe </table> :l
o5,B;k </body> +7w5m </html> |
|