Windows下通过脚本自动发邮件
发表于:2025-12-02 作者:千家信息网编辑
千家信息网最后更新 2025年12月02日,创建一个脚本文件,名字随意,扩展名vbssubject=WScript.Arguments(0)content=WScript.Arguments(1)set sh=WScript.CreateObj
千家信息网最后更新 2025年12月02日Windows下通过脚本自动发邮件
创建一个脚本文件,名字随意,扩展名vbs
subject=WScript.Arguments(0)content=WScript.Arguments(1)set sh=WScript.CreateObject("WScript.Shell")host=WScript.FullNameIf LCase(Right(host,11))="wscript.exe" Then sh.run "cscript //nologo """ & WScript.ScriptFullName & Chr(34), 0 WSCript.QuitEnd Ifsh.Run "cmd.exe"WScript.Sleep 1000sh.SendKeys "telnet"sh.SendKeys("{Enter}")WScript.Sleep 1000sh.SendKeys "open smtp.somesome.com 25" sh.SendKeys("{Enter}")WScript.Sleep 1000sh.SendKeys "helo somesome.com" sh.SendKeys("{Enter}")WScript.Sleep 500sh.SendKeys "auth login" sh.SendKeys("{Enter}")WScript.Sleep 500sh.SendKeys "xxxxxxx" sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys "xxxxxxx" sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys "mail from:" sh.SendKeys("{Enter}")WScript.Sleep 500sh.SendKeys "rcpt to:" sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys "rcpt to:" sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys "data" sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys "from:test1" sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys "to:test2" sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys "subject:" & subject sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys "" sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys content sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys "" sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys "." sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys("{Enter}")WScript.Sleep 1000sh.SendKeys "quit" sh.SendKeys("{Enter}")WScript.Sleep 5000sh.SendKeys("{Enter}")WScript.Sleep 2000sh.SendKeys "quit" sh.SendKeys("{Enter}")WScript.Sleep 100sh.SendKeys("exit{Enter}")WScript.Quit 启动脚本,传入参数:
cscript //Nologo SendMail3.vbs subject-%time% content111
脚本
参数
名字
扩展名
文件
邮件
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
网络安全达人证书
网络安全法企业必做
afc怎样做到网络安全
禁止访问服务器
个人如何报考网络安全员证
服务器在国外的网盘
北京大学人民医院网络安全
揽众网络安全手抄报
朝阳区软件开发公司
广东江门零件加工管理软件开发
开启服务器管理器
软件开发公司账务处理流程
国外网络安全隔离卡
西安交通大学软件开发基础
diy数字播放服务器
丰台区网络技术培训
风险数据库范例
哪一个数据库有知识脉络检索
怎么理解java软件开发
数据库和数据库完整性测试
电脑软件开发学什么专业
Java单元测试数据库操作
数据库端口是啥意思
access数据库可以下到d盘
ofbiz 查询数据库
读国家网络安全的读后感
toard 导出数据库
软件开发从头学起
锐思数据库是权威的吗
为什么玩洛克连接不到服务器