阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
问题:PHP 发邮件的例子
问题:PHP 发邮件的例子 AkAQ%)6qV ~i
UG2 4v http://now.net.cn/support/host/phpmail.net Hj97&C{Q^ l8 H8c & <? \5P 5N]] if($send){ X4CiVV $hearer="From:$from\nReply-To:$from\nX-Mailer: PHP/".phpversion()."\nContent-Type:text/html"; WX4f3Um $result=mail($to,$subject,$body,$hearer); Av>xgfX if($result) ~B\O{5W
echo "邮件已成功发送"; 7* R
%zJ } ;Iax \rQ ?> t03T1.:(Mg <html> Ia j`u <body> 3R<VpN){ <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#6699FF"> te;VGpv. <form method="post"> y*e({fio_ <tr bgcolor="#E7E7CB"> {sW>J0 <td width="20%" height="26">发件人:</td> q}gM2Ia'vY <td width="80%"><input name="from" type="text"></td> M'nzoRk </tr> E<'V6T9bi <tr bgcolor="#E7E7CB"> GG
%*d] <td height="25">收件人:</td> <9]J/w+ <td><input name="to" type="text"></td> _'Rg7zHTp- </tr> !@>q^_Gez <tr bgcolor="#E7E7CB"> D<'G\#n3I= <td height="24">邮件标题:</td> B&AF(e ( <td><input name="subject" type="text" size="50"></td> -oi@1g@ </tr> NAX`y2z <tr bgcolor="#E7E7CB"> 4+:
'$Nw <td height="27">邮件内容:</td> :A+}fBIN <td><textarea name="body" cols="60" rows="10"></textarea></td> K=>j+a5$ </tr> C8%MKNPd <tr bgcolor="#E7E7CB"> 5DJ!:QY! <td height="28"> </td> Fg0!2MKq* <td> O~
|Y#T <input type="hidden" value="1" name="send"> ee{K5 G <input type="submit" name="Submit" value="提交"> %WPy
c%I <input type="reset" name="Submit2" value="重置"></td> <vt}+uMzXv </tr> [U:
P&) </form> \46*4?pP </table> "A0y&^4B@ </body> 9W&nAr </html>
|
|
|
|
[楼 主]
|
Posted: 2006-04-03 09:26 |
| |