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

📄 submit.php

📁 极限网络智能办公系统—MYOA26—100%—源程序。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/utility_sms1.php" );
echo "\r\n<html>\r\n<head>\r\n<title>发送邮件</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$connection = openconnection( );
$SEND_TIME = date( "Y-m-d H:i:s", time( ) );
$SUBJECT1 = $SUBJECT;
$TOK = strtok( $TO_ID, "," );
while ( $TOK != "" )
{
	$query = "insert into EMAIL(FROM_ID,TO_ID,SUBJECT,CONTENT,SEND_TIME,ATTACHMENT_ID,ATTACHMENT_NAME,READ_FLAG,SEND_FLAG,DELETE_FLAG) values ('{$LOGIN_USER_ID}','{$TOK}','{$SUBJECT}','{$CONTENT}','{$SEND_TIME}','{$ATTACHMENT_ID}','{$ATTACHMENT_NAME}','0','{$SEND_FLAG}','0')";
	exequery( $connection, $query );
	if ( $SMS_REMIND == "on" && $SEND_FLAG == 1 )
	{
		$SMS_CONTENT = "请查收我的邮件!\n主题:".csubstr( $SUBJECT1, 0, 100 );
		send_sms( $connection, $LOGIN_USER_ID, $TOK, 2, $SMS_CONTENT );
	}
	$TOK = strtok( "," );
}
if ( $SEND_FLAG == 0 )
{
	message( "提示", "邮件已保存到发件箱" );
}
else
{
	message( "提示", "邮件已发送" );
}
echo "\r\n<br>\r\n<div align=center>\r\n  <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='../index.php'\">\r\n</div>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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