-
Form to mail troubles
created a simple form to mail script using ASP
when i enter all information in form and press submit i get error message "Http 500 internal error" page cannot be display..Could anyone tell me what sort of things could cause this or what Im doing wrong. below you will find script
Thanks in advance.
<%
theSchema="http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig=server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(theSchema & "sendusing")=2
cdoConfig.Fields.Item(theSchema & "smtpserver")="my smtp server name"
cdoConfig.Fields.Update
set CdoMessage=Server.CreateObject("CDO.Message")
cdoMessage.Configuration=cdoConfig
cdoMessage.From=Request.Form("emailAddress")
cdoMessage.To="my e-mail address"
cdoMessage.Subject=Request.Form("subject")
cdoMessage.TextBody=Request.Form("body")
cdoMessage.Send
Set cdoMessage=Nothing
Set cdoConfig=Nothing
%>