I have moved a classic asp (3.0) site from Windows 2003 to Windows 2008 server. Now, the mailforms don't work. I have installed SMTP server on the Windows 2008 server.
After hours of research and testing I have tried "everything". But still no luck. The webserver just give me this Errormessage: "500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed."
In IIS I have changed the ASP Debugging Properties: Send Error To Browser = True. I have also changed "Show friendy Error Messages to False in Internet Explorer.
The mail script I use is attached. Does anyone have a clue why it don't work on my Windows 2008 Server?
Set cdoMail = CreateObject("CDO.Message")
Set cdoConfig = CreateObject("CDO.Configuration")
Set Flds = cdoConfig.Fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'cdoSendUsingPort
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
Set .Configuration = cdoConfig
.To = "email@example.com"
.From = "firstname.lastname@example.org"
.Subject = "test"
.TextBody = "Here is the message"
Set cdoMessage = Nothing
Set cdoConfig = Nothing
Set Flds = Nothing