首页 > 代码库 > windws下发邮件vbs脚本
windws下发邮件vbs脚本
NameSpace = "http://schemas.microsoft.com/cdo/configuration/" Set Email = CreateObject("CDO.Message") Email.From = "xxxx@xxxx.com" Email.To = "yue.yang@xxxx.com,yangkeping@xxxx.com" Email.Subject = "MySQL Bak" Email.Textbody = "MySQL 数据每日备份" y = year(Now) m = Month(Now) d = day(Now) If len(m) = 1 Then m = "0" & m If len(d) = 1 Then d = "0" & d fileName = y&""&m&""&d Email.AddAttachment "c:\mysql_bak\sql\gbds_"+fileName+".sql" With Email.Configuration.Fields .Item(NameSpace&"sendusing") = 2 .Item(NameSpace&"smtpserver") = "smtp.qiye.163.com" .Item(NameSpace&"smtpserverport") = 25 .Item(NameSpace&"smtpauthenticate") = 1 .Item(NameSpace&"sendusername") = "xxxx@xxxx.com" .Item(NameSpace&"sendpassword") = "xxxxx" .Update End With Email.Send
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。