如果实现定时发送信息?

adaailpll 2006-08-12 01:29:47
如题,就是说我想把一条信息自动在一个时间发送.应该怎么实现?
...全文
163 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
starsword 2006-08-12
  • 打赏
  • 举报
回复
可以用VB做个exe文件,然后利用WINDOWS的计划任务来定时执行这个程序,发送信息
街头小贩 2006-08-12
  • 打赏
  • 举报
回复
If 当前时间=你想发送的时间 then
用jmail发送到指定的信箱不得了
end If
adaailpll 2006-08-12
  • 打赏
  • 举报
回复
自己顶下.
will123 2006-08-12
  • 打赏
  • 举报
回复
学习
adaailpll 2006-08-12
  • 打赏
  • 举报
回复
我是初学者,请大家帮忙下.
adaailpll 2006-08-12
  • 打赏
  • 举报
回复
Forthleo(TT)你好,能不能给个具体的代码例子,谢谢先.
Forthleo 2006-08-12
  • 打赏
  • 举报
回复
1、把要发送的信息放在发送表里,有一个字段时记录发送时间的;
2、对表进行扫描,
sq0421 2006-08-12
  • 打赏
  • 举报
回复
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="text.css" rel="stylesheet" type="text/css">
<title>Send_message</title>
<script language=JavaScript>
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function startclock () {
stopclock();
showtime();
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();

if (hours==23 && minutes==55 && seconds==0){
msg1=open('send_message.asp','view','left=0,top=200,width=800,height=300,status=yes,scrollbars=yes');
}
if (hours==23 && minutes==59 && seconds==58){
if(typeof(msg1)!="undefined" && !msg1.closed) msg1.close();
}
//===================
var timeValue = "" +((hours >= 12) ? "下午 " : "上午 " )
timeValue += ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.clock.thetime.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
</SCRIPT>


</head>
<body onLoad="startclock()">
<form name=clock >
<input name=thetime class="text14" size=12>
</form>
</body>
</html>

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧