Jump to content

Recommended Posts

Posted

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

Posted

First you might try checking your Error logs at your cpanel right after you recieve the 500 Error. Second, try posting your script for somebody to debug.

Posted

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.

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...