swi69

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
Auf Facebook teilen
Auf X (Twitter) teilen
Auf Reddit teilen
Auf Linkedin teilen

Content-ID: 1134

Url: https://administrator.de/forum/frage-zu-vbscript-dass-mails-ohne-smtp-service-versendet-1134.html

Ausgedruckt am: 10.05.2025 um 04:05 Uhr