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

所属分类: 脚本专栏 / vbs 阅读数: 1955
收藏 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

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

VBS监视网络连接与断开的代码

监视网络连接与断开,特殊情况下可能有点用,两个VBS脚本均来自微软官网
收藏 0 赞 0 分享

可以修改脚本自身运行次数的vbs(Self modifying script)

通过脚本修改脚本的内容,这里以统计脚本运行次数为例,想学习vbs的朋友可以参考下
收藏 0 赞 0 分享

VBScript之通过对比注册表查找隐藏的服务

系统服务有可能被 rootkit 隐藏,但有些时候我们仍可以从注册表中找到相关的信息。建议以管理员权限运行,否则有些服务列举不出来或出现错误的提示
收藏 0 赞 0 分享

VBScript 监控并结束指定进程的代码

有时候我们需要监控一些进程,防止一些进程的开启,发现指定进程运行就关闭它,那么就可以参考下面的代码
收藏 0 赞 0 分享

VBScript 输出中的对齐实现方法

有时候我们需要在vbs中输入的字符实现对齐效果,那么就可以参考下面的代码了
收藏 0 赞 0 分享

vbs 获取当前目录的实现代码

获取当前正执行的VBS的路径,通过Scripting.FileSystemObject组件实现
收藏 0 赞 0 分享

vbs 获取当前目录文件数量的代码(不包括子文件夹中的)

有时候我们需要获取当前目录下有多少个文件,那么就可以参考下面的代码
收藏 0 赞 0 分享

VBS获取当前目录下所有文件夹名字的代码

有时候我们需要获取当前目录下所有文件夹的名字,那么就可以参考下面的代码了
收藏 0 赞 0 分享

VBS读取注册表的两种方法

有时候我们需要用vbs来操作注册表,一般情况下有两种方法,一种是通过wshshell对象的regread,另外一种是使用WMI操作注册表,下面简单的介绍下
收藏 0 赞 0 分享

查看系统C盘剩余空间的VBS脚本

查看系统C盘剩下的空间方法有很多,在本文要为大家介绍的是通过VBS脚本是如何实现的,感兴趣的朋友不要错过
收藏 0 赞 0 分享
查看更多