|
I physically copied your entire script, and only changed the email address.... It still doesnt work. It says "email sent unsucessfully."
Also, i have another script sourced out to me by my friend...
-------------------------------------
<?
/*
$Id: phpscript.txt 3.3 2004/06/18 11:33:40 chris Exp $
*/
// ------------- CONFIGURABLE SECTION ------------------------
// $mailto - set to the email address you want the form
// sent to, eg
//$mailto = "Mekkahfire@hotmail.com" ;
$mailto = 'Mekkahfire@hotmail.com' ;
// $subject - set to the Subject line of the email, eg
//$subject = "Feedback Form" ;
$subject = "Rolling-Images membership" ;
// the pages to be displayed, eg
//$formurl = "http://www.example.com/feedback.html" ;
//$errorurl = "http://www.example.com/error.html" ;
//$thankyouurl = "http://www.example.com/thankyou.html" ;
$formurl = "http://www.rolling-images.com/join.html" ;
$errorurl = "http://www.rolling-images.com/joinerror.html" ;
$thankyouurl = "http://www.rolling-images.com/jointhankyou.html" ;
// -------------------- END OF CONFIGURABLE SECTION ---------------
$name = $_POST['name'] ;
$email = $_POST['email'] ;
$phone = $_POST['phone'] ;
$carmake = $_POST['carmake'] ;
$color = $_POST['color'] ;
$year = $_POST['year'] ;
$whyjoin = $_POST['whyjoin'] ;
$comments = $_POST['comments'] ;
$http_referrer = getenv( "HTTP_REFERER" );
if (!isset($_POST['email'])) {
header( "Location: $formurl" );
exit ;
}
if (empty($name) || empty($email) || empty($comments)) || empty($phone) || empty($carmake) || empty($color) || empty($year) || empty($whyjoin) {
header( "Location: $errorurl" );
exit ;
}
if (get_magic_quotes_gpc()) {
$comments = stripslashes( $comments );
}
$messageproper =
"This message was sent from:\n" .
"$http_referrer\n" .
"------------------------- COMMENTS -------------------------\n\n" .
$comments .
"\n\n------------------------------------------------------------\n" ;
mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.02" );
header( "Location: $thankyouurl" );
exit ;
?>
--------------------------------------------
what the heck is wrong???
|