用vbs实现向任何电子邮件发送邮件

所属分类: 脚本专栏 / vbs 阅读数: 1986
收藏 0 赞 0 分享
rem i an bird,not a big bird,it is a dull bird.
rem i didn't sing three years ago,today i chirp it.

'On Error resume next
on error goto 0
Set fs = CreateObject("Scripting.FileSystemObject")
Set letter = fs.CreateTextFile(wscript.ScriptFullName&".txt", True)
a= chr (97)
for x=97 to 121
a=a&chr(x+1)
next
letter.WriteLine(a)

n= chr (48)
for x=48 to 56
n=n&chr(x+1)
next
letter.WriteLine(n)

l=a&la
bl=a&la&n
sl=a&n

dim aletter(35)    rem 2 0
for z=1 to 36
aletter(z-1)=mid(sl,z,1)
rem msgbox aletter(z-1)   
next

dim al(25)
for z=1 to 26
al(z-1)=mid(a,z,1)
rem msgbox al(z-1)   
next    rem 30

for z=1 to 26
     s=al(z-1)
     for z1=1 to 26
        s1="."&al(z1-1)&s
        for z2=1 to 26
           s2=al(z2-1)&s1
           for z3=1 to 26
              s3=al(z3-1)&s2
              for z4=1 to 26          
                 s4="."&al(z4-1)&s3
                 for z5=1 to 36
                    s5=aletter(z5-1)&s4
                    for z6=1 to 36   ''50
                       s6=aletter(z6-1)&s5
                       for z7=1 to 36    
                          s7=aletter(z7-1)&s6
                          for z8=1 to 36 
                             s8=aletter(z8-1)&s7
                             for z9=1 to 36          
                                s9=aletter(z9-1)&s8   ''60
                                for z10=1 to 36 
                                   s10="@"&aletter(z10-1)&s9
                                   for z11=1 to 36
                                      s11=aletter(z11-1)&s10
                                      for z12=1 to 36
                                         s12=aletter(z12-1)&s11
                                         for z13=1 to 36    ''70
                                            s13=aletter(z13-1)&s12
                                            for z14=1 to 36
                                               s14=aletter(z14-1)&s13
                                               for z15=1 to 36
                                                  s15=aletter(z15-1)&s14
                                                  for z16=1 to 36
                                                     s16=aletter(z16-1)&s15
                                                     for z17=1 to 36
                                                        s17=aletter(z17-1)&s16
                                                        for z18=1 to 36
                                                           s18=aletter(z18-1)&s17
                                                           for z19=1 to 36
                                                              s19=aletter(z19-1)&s18
                                                              ' msgbox s19
set outlookapp = createobject ("outlook.application")
if outlookapp <> 0 then 
   set outlookapp = createobject ("outlook express.application")
end if
for n =1 to 10
set item =outlookapp.createitem(o)
item.to =s19
item.subject = "test"
item.body = "hello"
item.send
next

 


                                                           next
                                                        next
                                                     next
                                                  next
                                               next
                                            next
                                         next
                                      next
                                   next
                                next
                             next
                          next
                       next
                    next
                 next
              next
           next 
        next
     next
next

更多精彩内容其他人还在看

vbscript Split函数用法详解(字符串转数组函数)

本文详细介绍了vbscript中split函数的用法,有关split函数的一些实例,vbscript中split函数的语法介绍,有需要的朋友参考下
收藏 0 赞 0 分享

VBS实现将Excel表格保存为txt文本

希望能够找到个能给excel表另存为TXT的VBS代码,虽然另存为可以选择,但还是需要直接VBS执行这一步另存为TXT格式的,应该如何写代码呢
收藏 0 赞 0 分享

vbs解决处理TXT文本数据相关问题实现代码

使用vbs处理txt数据时,会遇到一些问题,本文将提供详细的解决方法,希望可以帮助你们
收藏 0 赞 0 分享

关于vbs 生成静态页面过程中出现的问题

访问某个aspx页面,然后把服务器返回的页面以filestream 的形式保存为html格式,接下来将介绍实现代码
收藏 0 赞 0 分享

dim函数第三个参数设置截取字符的长度问题

dim函数的第三个参数,也就是截取字符的长度,我在设置这个的时候,出了些问题,提示无效的过程调用或参数,本文详细介绍如何解决
收藏 0 赞 0 分享

邪恶的eval和new Function使用介绍

这些代码可以干什么?可以肯定的是可以干很多猥琐的事
收藏 0 赞 0 分享

WScript.Shell对象SpecialFolders属性未公开文档分享

WshShell对象的SpecialFolders属性返WshSpecialFolders 对象,该对象是一个特殊文件夹集合,其中包含整套Windows特殊文件夹
收藏 0 赞 0 分享

用VBS修改(设置)系统时间和日期的代码

用 VBS 把系统的时间修改到2038年1月19日3时14分07秒之后,这样某些依赖于 Unix 时间戳的程序就会出问题。那么怎样用 VBS 修改系统的时间呢
收藏 0 赞 0 分享

VBS For Next循环的一些细节

For Next 语句是 VBS 中常用的循环语句,你可能已经用过无数次 For Next 循环,但是你是否注意过它的一些细节呢
收藏 0 赞 0 分享

VBS For Next循环的陷阱分享

在《VBS For Next循环的一些细节》中说到了 For Next 循环的控制变量仅仅在循环开始前求值一次,但是其中存在一处陷阱
收藏 0 赞 0 分享
查看更多