I keep getting this error on my form code, but only when I keep the MailNewObj.Send in the code, so I know it is this... I get the 500 INTERNAL ERROR message.. I tried shutting off "friendly messages" in IE, but it still winds up with the same message... I am publishing to GoDaddy and the GoDaddy server is ASP/LINUX since I wanted a combination of both... GoDaddy mentioned I should add the following lines, somewhere in my code:OUTGOING SERVER = relay-hosting.secures erver.net
Any help would be appreciated...
ENTIRE CODE:
<%@ Language="VBscr ipt" %>
<% Option Explicit %>
<html>
<head>
<title>Messag e Sent</title>
</head>
<body>
<%
'declare the variables that will receive the values
'receive the values sent from the form and assign them to variables
'note that request.form("n ame") will receive the value entered into the textfield
'called name, and so with email and message
Dim first, last, phone, email
Dim eventdate, eventtype, eventlocation, message, NewMailObj
first=request.f orm("first")
last=request.fo rm("last")
phone=request.f orm("phone")
email=request.f orm("email")
eventdate=reque st.form("eventd ate")
eventtype=reque st.form("eventt ype")
eventlocation=r equest.form("ev entlocation")
message=request .form("message" )
'create the mail object and send the details
Set NewMailObj=Serv er.CreateObject ("CDONTS.NewMai l")
NewMailObj.From = "events@settevi deoproductions. com"
NewMailObj.To = "events@settevi deoproductions. com"
NewMailObj.Subj ect = "NEW MESSAGE FROM SETTEVIDEOPRODU CTIONS.COM"
NewMailObj.Body = "First Name: " & first & _
"<br>Last Name: " & last & _
"<br>Phone: " & phone & _
"<br>E-mail: " & email & _
"<br>Event Date: " & eventdate & _
"<br>Event Type: " & eventtype & _
"<br>Event Location: " & eventlocation & _
"<br>Messag e: " & message
'you need to add the following lines FOR the mail to be sent in HTML format
NewMailObj.Body Format = 0
NewMailObj.Mail Format = 0
'The next line gives me an error if I keep it in... it is necessary to send the mail out
NewMailObj.Send
'Close the email object and free up resources
Set NewMailObj = nothing
Response.Redire ct "http://www.settevideop roductions.com/thankyou.html"
%>
</body>
</html>
Any help would be appreciated...
ENTIRE CODE:
<%@ Language="VBscr ipt" %>
<% Option Explicit %>
<html>
<head>
<title>Messag e Sent</title>
</head>
<body>
<%
'declare the variables that will receive the values
'receive the values sent from the form and assign them to variables
'note that request.form("n ame") will receive the value entered into the textfield
'called name, and so with email and message
Dim first, last, phone, email
Dim eventdate, eventtype, eventlocation, message, NewMailObj
first=request.f orm("first")
last=request.fo rm("last")
phone=request.f orm("phone")
email=request.f orm("email")
eventdate=reque st.form("eventd ate")
eventtype=reque st.form("eventt ype")
eventlocation=r equest.form("ev entlocation")
message=request .form("message" )
'create the mail object and send the details
Set NewMailObj=Serv er.CreateObject ("CDONTS.NewMai l")
NewMailObj.From = "events@settevi deoproductions. com"
NewMailObj.To = "events@settevi deoproductions. com"
NewMailObj.Subj ect = "NEW MESSAGE FROM SETTEVIDEOPRODU CTIONS.COM"
NewMailObj.Body = "First Name: " & first & _
"<br>Last Name: " & last & _
"<br>Phone: " & phone & _
"<br>E-mail: " & email & _
"<br>Event Date: " & eventdate & _
"<br>Event Type: " & eventtype & _
"<br>Event Location: " & eventlocation & _
"<br>Messag e: " & message
'you need to add the following lines FOR the mail to be sent in HTML format
NewMailObj.Body Format = 0
NewMailObj.Mail Format = 0
'The next line gives me an error if I keep it in... it is necessary to send the mail out
NewMailObj.Send
'Close the email object and free up resources
Set NewMailObj = nothing
Response.Redire ct "http://www.settevideop roductions.com/thankyou.html"
%>
</body>
</html>
Comment