I just setup the default SMTP virtual server on my testing server to test my mail scripts using CDO.
I recieve the following error when testing a mail script:
"Fields update failed. For further information, examine the status property of individual field objects."
Is anyone familiar with this error message? I know the mail script works because tested the script on remote production server and it runs fine. So, my assumption is either I have configured something incorrectly with the SMTP server? I'm not sure what to check?
Here is the code for the script:
<%
sch = "http://schemas.microsoft.com/cdo/configuration/"
mailbody = "" & "<strong>" & Request.Form("name") & " " & " has sent the following request:" & "</strong>" & "" & "<br>" & "<br>"
mailbody = mailbody & "" & "Email: " & Request.Form("email") & "<br>" & "<br>" & "Site URL: " & Request.Form("siteURL") & "<br>" & "<br>" & "Phone Number: " & Request.Form("phone") & "<br>" & "<br>" & "Subject: " & Request.Form("subject") & "<br>" & "<br>" & "Message: " & Replace(Request.Form("message"), VbCrLf, "<br>") & ""
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(sch & "sendusing") = 25 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "dwayne-server"
.update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "
[email protected]"
.To = "
[email protected]"
.Subject = "Dwayne-Epps-website-response"
.HTMLBody = mailbody
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
I'm wondering if the problem could be a firmware upgrade needed for the router related to the port forwarding not working properly?
If anyone has encountered the above error ans has any suggestions, it would be appreciated. Thank you.
-Dman100-