Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP 500 error

Status
Not open for further replies.

PMD

Programmer
May 5, 2000
3
GB
I've set up a jmail asp page on out server.<br>Its a page I'ved used before and just copied and altered to suit another site. This time however I get an, &quot;HTTP 500 Page cannot be displayed&quot; error whenever I try to use the mail form.<br><br>I have similar forms on the same server in different sites which work fine.<br>Anyone have an ideas???<br><br>&nbsp;Cheers Paul.
 
Dear Paul,<br><br>Is it an 'ASP' error? If so, there should be a line number for the error relating to the ASP code, and you should post the code that produces the error in your question.<br><br>&quot;But that's just my opinion... I could be wrong&quot;.<br><br>-pete
 
I was assuming it was an ASP error because there is very little HTML on the page plus it is a server side error.<br>Anyway the code is:=<br><br><br><br>&lt;%@ LANGUAGE=&quot;VBSCRIPT&quot; %&gt;<br><br>&lt;HTML&gt;<br>&lt;HEAD&gt;<br>&lt;META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual InterDev 1.0&quot;&gt;<br>&lt;META HTTP-EQUIV=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;<br>&lt;TITLE&gt;Document Title&lt;/TITLE&gt;<br>&lt;/HEAD&gt;<br>&lt;BODY&gt;<br><br>&lt;%<br>Function ConvertNull(varTemp)<br> If IsNull(varTemp) Then<br> ConvertNull = &quot;&quot;<br> Else<br> ConvertNull = Trim(varTemp)<br> End If<br>End Function<br><br><br><br><br>Name = request.form(&quot;name&quot;)<br>Email = request.form(&quot;Email&quot;)<br>Subject = request.form(&quot;Subject&quot;)<br>Message = request.form(&quot;message&quot;)<br><br><br><br>Set JMail = Server.CreateObject(&quot;JMail.SMTPMail&quot;) <br><br>' Below you should enter your own SMTP-server <br>JMail.ServerAddress = &quot;mail.dial.webs.co.uk&quot; <br><br>JMail.Sender = &quot;<A HREF="mailto:info@blast.co.uk">info@blast.co.uk</A>&quot;<br>JMail.Subject = &quot;Blast web site enquery.&quot;<br><br>JMail.AddRecipient Email<br>JMail.AddRecipientBCC &quot;<A HREF="mailto:info@blast-tm.co.uk">info@blast-tm.co.uk</A>&quot;<br>JMail.AddRecipientBCC &quot;<A HREF="mailto:andy@blast-tm.co.uk">andy@blast-tm.co.uk</A>&quot;<br>JMail.AddRecipientBCC &quot;<A HREF="mailto:pauld@blast-tm.co.uk">pauld@blast-tm.co.uk</A>&quot;<br><br><br>strBody = strBody & &quot;Name: &quot; & Name & vbCrLf<br>strBody = StrBody & &quot;Email:&quot; & Email & vbCrLf<br>strBody = strBody & &quot;Subject:&quot; & Subject & vbCrLf<br>strBody = strBody & &quot;Message:&quot; & Message & vbCrLf<br><br><br>Jmail.Body = strBody<br><br>JMail.Priority = 3 <br><br>JMail.Execute<br><br><br>%&gt;<br>&lt;META HTTP-EQUIV=&quot;refresh&quot; target=&quot;body&quot; CONTENT=&quot;0; url=<A HREF=" TARGET="_new">
 
Dear Paul,<br><br>If you are not recieving error information like this:<br><br>HTTP 500.100 - Internal Server Error - ASP error<br>Internet Information Services<br><br>--------------------------------------------------------------------------------<br><br>Technical Information (for support personnel)<br><br>Error Type:<br>Microsoft JScript runtime (0x800A1391)<br>'x' is undefined<br>/recycle/Default.asp, line 8<br><br><br>That directs you to the exact line of code where the error occurs. If you don't get this information from IIS then you will have to manually find the offending line.<br><br>I would start with the line from your code:<br><br>JMail.Execute, I would comment this line out and see if the pages still fails. You could then use this technique to find the line that causes the failure.<br><br>My guess would be that a COM object is failing internally and not handling the failure properly if you are not receiving a JScript error message.<br><br>Hope this helps<br>-pete
 
Hi,
I think ur prob is due to the no proper settings of the User Permissions in the Server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top