strDebug = "0"
If strDebug = "0" Then
GetUserForSendPassword
End If
Function GetUserForSendPassword
Dim ArrName,objName,ArrEngName,objEngName,ArrPwd,objPwd,i,length
ArrName = array("a.b@163.com","c.d@163.com","e.f@163.com")
ArrEngName = array("a","b","c")
ArrPwd = array("1","2","3")
strSubject="【服务公告】2010 9 30 18 00~22 00 外线语音密码回收与重新发放作业"
length = UBound(ArrName) - LBound(ArrName) + 1
for i=0 to length-1
objName = ArrName(i)
objEngName = ArrEngName(i)
objPwd = ArrPwd(i)
strBody="<html><body>Dear "+ objEngName +",<br> 你的外线语音密码已更改为"+ objPwd +".<br> 回收作业期间为2010/9/30 18:00~22:00,期间密码将无法使用。<br> 2010/9/30 22:00请开始使用新外线密码,使用方法不变.<br>Best Regards,<br>ITS8585</body></html>"
SendMail strBody,strSubject,objName
Next
End Function
Function SendMail(strBody,strSubject, strRecipient)
set jmail = wscript.CreateObject("jmail.message")
'jmail.ContentType = "text/html"
jmail.MailServerUserName = "****"
jmail.MailServerPassWord = "****"
jmail.from = "****@163.Com"
jmail.fromname="****"
'jmail.addrecipientcc "a.b@163.com.cn"
jmail.addattachment("E:/1.txt")
jmail.addrecipient strRecipient
jmail.subject = strSubject
jmail.htmlbody = strBody
jmail.Charset = "gb2312"
jmail.Encoding = "base64"
jmail.ContentTransferEncoding = "base64"
jmail.send "****"
jmail.Close()
Set JMail = Nothing
End Function