hello,
this script i found on internet, but i don’t understand it very well, can somebody help me please?
dim oCdonts, intDHash, intHash, strReferer, strServer, strClientIP, strServerIP, blnSpam
set oCdonts = server.createobject(“CDONTS.Newmail”)
strReferer = request.servervariables(“HTTP_REFERER”)
strServer = Replace(request.servervariables(“SERVER_NAME”), “www.”, “”)
strClientIP = request.servervariables(“REMOTE_ADDR”)
strServerIP = request.servervariables(“LOCAL_ADDR”)
strFrom = “noreply@” & strServer
intComp = inStr(strReferer, strServer)
If intComp > 0 Then
blnSpam = False
Else
’ Spam Attempt Block
blnSpam = True
End If
oCdonts.to = request.form(“email”)
oCdonts.from = strFrom
oCdonts.Subject = “CDONTS Test Mail”
oCdonts.body = “This test mail has been sent from server "
oCdonts.body = oCdonts.body & request.servervariables(“LOCAL_ADDR”) & " via CDONTS mail objects.”
If NOT blnSpam Then
oCdonts.send
strResult = “Mail Sent.”
Else
strResult = “Mail Not Sent.”
End If
set oCdonts=nothing