阿七 |
2006-04-03 09:26 |
问题:PHP 发邮件的例子 xo
^|d3 >N`,
3;Z http://now.net.cn/support/host/phpmail.net %t9Kc9u3p d=vD Pf <? 1v3 if($send){ M,{;xf $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; Ae^4 $result=mail($to,$subject,$body,$hearer); 6oq^n
s- if($result) m\
qR myO echo "邮件已成功发送"; /
)[\+Nc } ~Lu,jLKL=[ ?> ~<Wa$~oY <html> w+\RSqz/ <body> Fo
,8"m <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> m^/>C-&C <form method="post"> Qd?S~3XT <tr bgcolor="#E7E7CB"> \
sz](X <td width="20%" height="26">发件人:</td> [P)](8nR[ <td width="80%"><input name="from" type="text"></td> ^ 6t"A </tr> @k:@mzB7R <tr bgcolor="#E7E7CB"> 9]{Ss$W3x <td height="25">收件人:</td> &XhxkN$8 <td><input name="to" type="text"></td> 5rA>2<\pQ </tr> wlP%
U <tr bgcolor="#E7E7CB"> lL'K1%{+
\ <td height="24">邮件标题:</td> LzB*d <td><input name="subject" type="text" size="50"></td> D2:ShyYAS </tr> IeIv k55 <tr bgcolor="#E7E7CB"> `soQp2h- <td height="27">邮件内容:</td> 1_n5: <td><textarea name="body" cols="60" rows="10"></textarea></td> N71^I"@HH </tr> xkaed <tr bgcolor="#E7E7CB"> fX&g. fH <td height="28"> </td> K<u~[^R <td> =D 5!Xq'| <input type="hidden" value="1" name="send"> <2+FE/3L <input type="submit" name="Submit" value="提交"> P\
2Bx *e <input type="reset" name="Submit2" value="重置"></td> 2
t]=-@ </tr> xz/G$7q7 </form> DsiyN:o'+ </table> YE@!`!`d: </body> Fi+,omB& </html> |
|