⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendmail.php

📁 php做的wap论坛 有详细说明在readme中
💻 PHP
字号:
<?php
require_once("variable.php");
echo $WmlDeclare;
$nav = "<a href='./?session=$session'>返回首页</a><br/>";
?>
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
</head>
<card id="menu" title="外发邮件">
<p align="left">
<?php
echo $nav;
if($_GET[action]=="post" and $session!=""){	
	if(empty($_GET[email]) or empty($_GET[subject]) or empty($_GET[content])){
		echo "请完整填写项目!<br/>";
	}else{
		$email = $_GET[email];
		$subject = htmlspecialchars(iconv("UTF-8","GB2312",$_GET[subject]));
		$content = htmlspecialchars(iconv("UTF-8","GB2312",$_GET[content]));
		$row = mysql_fetch_array(mysql_query("select * from ".$dbTablePx."members where username='$username' limit 1"));
		if($row[md5id]==$session){
			@mail($email,$subject,$content,"From: ".$row[email]."\nReply-to: ".$row[email]."X-Mailer: LCBBS Mail");
			echo "发送成功!<br/><a href='./?session=$session'>&lt;&lt;返回首页</a><br/>";
		}else{
			echo "用户出错!<br/>";
			echo "<anchor>[返回上一页]<prev/></anchor><br/>";
		}
	}
}elseif($session!=""){
?>
对方邮件地址:<input name="email" type="text" format="*M" value="" emptyok="true" maxlength="30"/><br/>
标题:<input name="subject" type="text" format="*M" value="" emptyok="true" maxlength="60"/><br/>
内容:<input name="content" type="text" format="*M" value="" emptyok="true" maxlength="300"/><br/>
<anchor>
[发送]
        <go href="sendmail.php?action=post&amp;session=<?=$session;?>" method="get">
          <postfield name="email" value="$(email)"/>
          <postfield name="subject" value="$(subject)"/>
          <postfield name="content" value="$(content)"/>
        </go>
</anchor>
 <a href="./?session=<?=$session;?>">[取消]</a>
<?php
}else{
	echo "请先登录!";
}
?>
<br/>
<?php echo $nav;?>
<br/>
<small>(C)copyright by <?php echo $siteSign;?></small>
</p>
</card>
</wml>
<?php
LangFlush(ob_get_contents());
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -