Jump to content

Can't submit form to specific server hosted email


JiggaMan08

Recommended Posts

Hi all,

I am having an issue with a client of mine. He wants a form on his site, so I installed one I have used in the past (one I know works).

It seems as though when I use the email that is hosted on the same server as the website, it doesn't work. But if I change the email to a hotmail or yahoo, anywhere that's not on that one server, it works. Any idea how to fix this problem?

Here is the php file I use to send mail.

[code]
<?

  $name = $_REQUEST['name'] ;

  $email = $_REQUEST['email'] ;

  $message = $_REQUEST['message'] ;



  if (!isset($_REQUEST['email'])) {

    header( "Location: index.php?page=contact" );

  }

  elseif (empty($email) || empty($message)) {

    header( "Location: index.php?page=error" );

  }

  else {

    mail( "[email protected]", "$name's Feedback",

      $message, "From: $email" );

    header( "Location: index.php?page=thanks" );

  }

 

 

?>

[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.