Hello,
I changed domain providers recently and ever since I pointed the records to the new server the 'contact us form' gives me the following error:
Most likely causes:
•The website is under maintenance.
•The website has a programming error.
What you can try:
Refresh the page.
Go back to the previous page.
More information
This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.
For more information about HTTP errors, see Help.
Here is the code snippet from the form found on page 1 (index.asp)
---------------------------------------------------
<form method="post" action="email_send.asp">
<label><span class="text_formSide">Name</span><br />
<input type="text" name="name" id="name" />
</label>
<br />
<label><span class="text_formSide"><br />
Email </span><br />
<input type="text" name="email" id="email" />
</label>
<br />
<br />
<input name="B1" type="button" class="button" onclick="validateForm()" onmouseover="this.className='buttonon'" onmouseout="this.className='button'" value="Send" />
</form></td>
Snippet from email.send.asp
-----------------------------------------------------
<%@ LANGUAGE=VBSCRIPT %>
<% Option Explicit %>
<%
'for email
Dim objMail
'from form
Dim strName,strEmail
strName =Request("name")
strEmail =Request("email")
'Response.Write "Name is:"
'Response.Write (strName)
'build transaction email to send to Administrator
'--------------------------------------------------------------------------------------------
Set objMail=Server.CreateObject("CDONTS.NewMail")
'Set objMail = Server.CreateObject("CDO.Message")
objMail.to="mydomain@mydomain.net"
objMail.From= strEmail
objMail.Subject="Email Sent from Direct Fuel | Sign up"
'objMail.TextBody= "Name: " & strFirstName & vbcrlf&_
objMail.Body= "Name: " & strName & vbcrlf&_
"Email: " & strEmail & vbcrlf
objMail.Send
Set objMail=nothing
Response.Redirect "thanks.asp"
%>
Does this sound like a permissions issue on the new hosts server. To test I pointed back to the old server the forms work fine again?
Many Thanks,
PB
I changed domain providers recently and ever since I pointed the records to the new server the 'contact us form' gives me the following error:
Most likely causes:
•The website is under maintenance.
•The website has a programming error.
What you can try:
Refresh the page.
Go back to the previous page.
More information
This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.
For more information about HTTP errors, see Help.
Here is the code snippet from the form found on page 1 (index.asp)
---------------------------------------------------
<form method="post" action="email_send.asp">
<label><span class="text_formSide">Name</span><br />
<input type="text" name="name" id="name" />
</label>
<br />
<label><span class="text_formSide"><br />
Email </span><br />
<input type="text" name="email" id="email" />
</label>
<br />
<br />
<input name="B1" type="button" class="button" onclick="validateForm()" onmouseover="this.className='buttonon'" onmouseout="this.className='button'" value="Send" />
</form></td>
Snippet from email.send.asp
-----------------------------------------------------
<%@ LANGUAGE=VBSCRIPT %>
<% Option Explicit %>
<%
'for email
Dim objMail
'from form
Dim strName,strEmail
strName =Request("name")
strEmail =Request("email")
'Response.Write "Name is:"
'Response.Write (strName)
'build transaction email to send to Administrator
'--------------------------------------------------------------------------------------------
Set objMail=Server.CreateObject("CDONTS.NewMail")
'Set objMail = Server.CreateObject("CDO.Message")
objMail.to="mydomain@mydomain.net"
objMail.From= strEmail
objMail.Subject="Email Sent from Direct Fuel | Sign up"
'objMail.TextBody= "Name: " & strFirstName & vbcrlf&_
objMail.Body= "Name: " & strName & vbcrlf&_
"Email: " & strEmail & vbcrlf
objMail.Send
Set objMail=nothing
Response.Redirect "thanks.asp"
%>
Does this sound like a permissions issue on the new hosts server. To test I pointed back to the old server the forms work fine again?
Many Thanks,
PB