Jump to content

500 Internal Server Error


BigGuy2

Recommended Posts

On beres-expert.heliohost.org, Contact page, I have set up a box where someone can write a message and by clicking the button below it, the message should get sent as an e-mail to an e-mail adress, using php mail function. Unfortunately, I receive an error, 500 Internal Server Error. I tested this script on another hosting server and it worked. What can I do to fix this?

 

I await your answer,

Thank you

Link to comment
Share on other sites

This is what's written in the error log right after I get the error :

 

[Tue Sep 28 12:38:24 2010] [error] [client 188.24.232.215] File does not exist: /home/bigguy/public_html/500.shtml, referer: http://beres-expert.heliohost.org/contact.php

 

 

This is the script I use :

 

<?php

$from=$_POST['from'];

$to='beresimob@yahoo.com';

$subject=$_POST['subject'];

$message=$_POST['body'];

mail($to, $subject, $message, 'From: '.$from);

header('index.php');

?>

 

The information in the POST array is taken from the form on the Contact page.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...