//mail.php
//讀信內容
$filename = "wellcom.txt";
$fd = fopen( $filename, "r" );
$contents = fread($fd, filesize($filename));
fclose( $fd );
//取代其中對應內容
$contents=eregi_replace("
$contents=eregi_replace("
$contents=eregi_replace("
//寄信
$to_email=$email;
$from_email="php-java@21cn.com";
$subject="Wellcom!";
$header_info ="From:$from_emailnReply-To:$from_email";
$result=@mail($to_email,$subject,$contents,$header_info);
if($result) {
echo "發信成功!資料為:
使用者名稱:
密碼:
歡迎您的到來!
歡迎參觀:
http://www.bkjia.com/PHPjc/315383.html
www.bkjia.com