Einzelnen Beitrag anzeigen
Alt 27.01.2004, 16:31   #1
hewlett
Inventar
 
Registriert seit: 08.11.2000
Alter: 42
Beiträge: 1.524


Standard Problem mit CDONTS.NewMail bei ASP

Hi Leute,

ich versuch grad eine tell-a-friend Funktion in meine Page einzubauen hab aber mit CDONTS Probleme. Ich habs schon abgecheckt, der Server unterstützt CDONTS. Wenn ich das Skript von unten jetzt in eine Testseite einbaue und es aufrufen will meldet der Internet Explorer HTTP 500 - Interner Serverfehler, Seite kann nicht angezeigt werden! Wo kann hier das Problem liegen?

Code:
<%
Const cstCdoMailFormatMime = 1
Const cstCdoMailFormatText = 0

Const cstCdoBodyFormatHTML = 0
Const cstCdoBodyFormatText  = 1

strBetreff = "Textnachricht"
strNachricht = "Dies ist eine Textnachricht," & VbCrLf
strNachricht = strNachricht & "generiert vom NewMail Objekt."
strEmpaenger = "test@mail.com"
strAbsender = "absender@mail.com"

' Email abschicken:
Set objNewMail = CreateObject("CDONTS.NewMail")
objNewMail.MailFormat = cstCdoMailFormatText
objNewMail.BodyFormat = cstCdoBodyFormatText
objNewMail.From = strAbsender
objNewMail.To = strEmpaenger
objNewMail.Subject = strBetreff
objNewMail.Body = strNachricht
objNewMail.Send
Set objNewMail = Nothing
%>
____________________________________
H.E.W.L.E.T.T.: Hydraulic Electronic Worker Limited to Exploration and Terran Troubleshooting
hewlett ist offline   Mit Zitat antworten