0
如果警告消息出現在我的包中,我想發送郵件給別人,當我要求提供smtp配置詳細信息時,有人幫助我如何使用smtp任務組件。SSIS-SMTP或腳本任務配置文件
我只是提供了下面的代碼在這裏..
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "[email protected]"
objEmail.To = "[email protected]
objEmail.Subject = "load processing started"
objEmail.Textbody = "load processing started."
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
"tac-mailgate.prod.ds.xyz.com"
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send
可以請你幫我在上面的代碼配置更簡單地發送郵件..
謝謝...