阿七 |
2006-04-03 09:26 |
问题:PHP 发邮件的例子 X{n7)kgL /Hox]r]'e http://now.net.cn/support/host/phpmail.net F{#m~4O S$CO T)7 <? 4G:I VK9 if($send){ 9,?\hBEu $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; O/X;(qYd $result=mail($to,$subject,$body,$hearer); Sv*@ 3x if($result) U
oskfm echo "邮件已成功发送"; +3HukoR( } 0p8Z l ?> _xg4;W6M= <html> :ZP4(
} <body> '~dE0ohWb <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> 4_CV.? <form method="post"> .
g CC$ <tr bgcolor="#E7E7CB"> &cjE+ <td width="20%" height="26">发件人:</td> DzZ)a
E <td width="80%"><input name="from" type="text"></td>
b>N)H </tr> 1B;-ea <tr bgcolor="#E7E7CB"> "W_C%elg <td height="25">收件人:</td> go, Hfb <td><input name="to" type="text"></td> j@1rVOmK </tr> NLe+ <tr bgcolor="#E7E7CB"> fV-vy]x.. <td height="24">邮件标题:</td> \]y4e^FZZ <td><input name="subject" type="text" size="50"></td> Qm|Q0u </tr> *7"R[!9 <tr bgcolor="#E7E7CB"> ?Rc+H;x=f <td height="27">邮件内容:</td> 4(aDi;x "w <td><textarea name="body" cols="60" rows="10"></textarea></td> P#o/S4 </tr> #4(/#K 1j <tr bgcolor="#E7E7CB"> sSLs%)e|: <td height="28"> </td> &Mset^o <td> -e=p*7'] <input type="hidden" value="1" name="send"> gf]biE"k <input type="submit" name="Submit" value="提交"> $9znRTFEj <input type="reset" name="Submit2" value="重置"></td> <BIj
a </tr> QN[-XQ>Xt </form> Cc:4n1|]> </table> } d /5_X </body> &Z682b$ </html> |
|