meisterqui-gonjinn
Goto Top

Email per VBS senden

Ich habe folgendes Skript erstellt:

Set objMessage = CreateObject("CDO.Message")   
objMessage.Subject = "Test"   
objMessage.From = """Meine Adresse"" <meineadresse@web.de>"   
objMessage.To = "dieemaildesanderen@gmx.de"   
objMessage.TextBody = "test"  


objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2   
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.web.de"  
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1  
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "meineadresse@web.de"  
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "meinpasswort!"  
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25   
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False  
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60  
objMessage.Configuration.Fields.Update



objMessage.Send 


leider bekomme ich folgende Fehlermeldung:


Fehler: Die Nachricht konnte nicht an den SMTP-Server gesendet werden. Der Transportfehlercode lautet 0x80040217. Die Serverantwort lautet not available.
Code: 80040211
Quelle: (null)

Der smtp-Server ist erreichbar. Kennwort und Benutzer stimmen auch. Was mache ich falsch?

Vielen Dank im vorraus. Gruß Qui-Gon

Content-Key: 98958

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

Printed on: April 25, 2024 at 11:04 o'clock

Member: AndreasHoster
AndreasHoster Oct 10, 2008 at 15:23:07 (UTC)
Goto Top
Schon mal probiert, ob der SMTP Server überhaupt erreichbar ist?
z.B. mit telnet smtp.web.de 25
Bietet Web.de überhaupt authentifiziertes SMTP an? Früher gings nur über POP before SMTP.