<?
if(submit=="发送")
$mainurl = "http://lyjrich.oso.com.cn/card"; //该贺卡文件主目录URL
$dataurl = "$mainurl/store"; //存放产生的贺卡的URL
$userip = getenv("REMOTE_ADDR");
$daten = date("m月d日H点i分");
$roundno = date("mdHis");
$fileno .=$roundno.".html";
$fileurl = $dataurl."/".$fileno; //存放产生的贺卡的URL
$subject="朋友给你邮的贺卡";
$content = eregi_replace("<br>","\n","$text");
$t_body .= "**************************************\n";
$t_body .= $f_name." 您好:\n";
$t_body .= $g_username." 从http://lyjrich.oso.com.cn 寄了一张贺卡给你。\n";
$t_body .= $g_username."给您的留言上说:\n".$text ."\n\n";
$t_body .= "请你点击http://lyjrich.oso.com.cn/card".$fileurl." 来欣赏这张贺卡\n";
$t_body .= "贺卡最长将为你保存一个月。\n\n";
$t_body .= "\n************************************\n";
$t_body .= "发送时间 $daten\n";
$t_body .= "**************************************\n\n";
$t_body .= "免费电子贺卡由 your web 网站提供\n\n\n";
$t_body .= "程序制作:lyjrich(http://lyjrich.oso.com.cn)\n";
mail($f_email,$subject,$t_body,"From: ".$email."\n");
echo "<script language=\"javascript\">history.back();alert(\"发送成功,谢谢使用!!\");</script>";
$message ="<html>
<head>
<title>电子贺卡</title>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
</head>
<body bgcolor='#eeeeee'>
<table width='497' border='0' cellspacing='0'
| 对此文章发表了评论 |
