swi69
Goto Top

Frage zu VBScript, dass Mails ohne SMTP Service versendet

Hallo,

bei MS findet man folgendes kleines Skript:

Set objEmail = CreateObject("CDO.Message")  
objEmail.From = "admin1@fabrikam.com"  
objEmail.To = "admin2@fabrikam.com"  
objEmail.Subject = "Server down"  
objEmail.Textbody = "Server1 is no longer accessible over the network."  
objEmail.Configuration.Fields.Item _
 ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2  
objEmail.Configuration.Fields.Item _
 ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _  
"MySMTPHost"  
objEmail.Configuration.Fields.Item _
 ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25  
objEmail.Configuration.Fields.Update
objEmail.Send
Kann mir jemand erklären, was hier die Zeilen "http://schemas......" zu bedeuten haben ?
Das Skript funktioniert gut...nur wüsste ich gerne, was da im Hintergrund abläuft.

Vielen Dank
Stephan

Content-Key: 1134

Url: https://administrator.de/contentid/1134

Printed on: April 16, 2024 at 04:04 o'clock