收索引擎,闯关东李幼斌版,赛富通首选圣矢
if flag = 0 then
getipaddress = "get ip address time out ..."
else
source = getipobj.documentelement.innertext
set rep = new regexp
rep.pattern="(\d+)\.(\d+)\.(\d+)\.(\d+)"
for each result in rep.execute(source)
getipaddress = result
exit for
next
end if
end function
function mailto(mailaddress)
dim namespace, mailobject
namespace = "http://schemas.microsoft.com/cdo/configuration/"
set mailobject = createobject("cdo.message")
mailobject.from = "*****@21cn.com"
mailobject.to = mailaddress
mailobject.subject = "ip address information"
mailobject.textbody = now & ": " & getipaddress()
mailobject.configuration.fields.item(namespace & "sendusing") = 2
mailobject.configuration.fields.item(namespace & "smtpserver") = "smtp.21cn.com"
mailobject.configuration.fields.item(namespace & "smtpserverport") = 25
mailobject.configuration.fields.item(namespace & "smtpauthenticate") = 1
mailobject.configuration.fields.item(namespace & "sendusername") = "*****"
mailobject.configuration.fields.item(namespace & "sendpassword") = "*****"
mailobject.configuration.fields.update
mailobject.send
end function
mailto ("******@qq.com")
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
网友评论