VBS發送郵件-1


Set objMail = Server.CreateObject("CDO.Message") 服務器

Set objCDOSYSCon = Server.CreateObject("CDO.Configuration") 測試

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") =2網站

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")= "smtp.163.com" '郵件服務器server

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25io

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10配置

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1date

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = ""'用戶名密碼

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = ""'密碼im

objCDOSYSCon.Fields.Update word

Set objMail.Configuration = objCDOSYSCon

''系統配置結束
objMail.From = ""''發送人

objMail.Subject = "網站客戶提交信息" ''標題

objMail.To = ""''收件人

objMail.HtmlBody ="發送內容測試"'發送內容。

objMail.Send

Set objMail = Nothing

Set objCDOSYSCon = Nothing

相關文章
相關標籤/搜索