Jump to content


Photo

email doesnt get sent...


  • Please log in to reply
1 reply to this topic

#1 L3g4cy

L3g4cy
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 10 December 2005 - 08:13 PM

Ok, I admit, I am extremely green!!
anyone tell me why my email wont get sent?


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Feedback</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

<?php
$mailto = "jason@l3g4cy.com" ;
$subject = "L3G4CY Feedback Form" ;
$formurl = "http://www.l3g4cy.co.../feedback.html" ;
$errorurl = "http://www.l3g4cy.com/error.html" ;
$thankyouurl = "http://www.l3g4cy.com/thanks.php" ;

$name = $_POST['name'] ;
$email = $_POST['email'] ;
$number = $_POST['number'] ;
$comments = $_POST['comments'] ;
$service = $_POST['service'] ;
$size = $_POST['size'] ;
$month = $_POST['month'] ;
$day = $_POST['day'] ;
$http_referrer = getenv( "HTTP_REFERER" );

if (!isset($_POST['email'])) {
header( "Location: $formurl" );
exit ;
}
if (empty($name) || empty($email) || empty($number) || empty($service) ||) {
header( "Location: $errorurl" );
exit ;
}
$name = strtok( $name, "\r\n" );
$email = strtok( $email, "\r\n" );
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>\r\nReply-To: \"$name\" <$email>\r\nX-Mailer: chfeedback.php 2.04" ); [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]<----could this be my problem?[!--colorc--][/span][!--/colorc--]
header( "Location: $thankyouurl" );
exit ;

?>
</body>
</html>

[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--][!--sizeo:3--][span style=\"font-size:12pt;line-height:100%\"][!--/sizeo--]This is the error that my mailError.log displays....How do i fix this?[!--sizec--][/span][!--/sizec--][!--colorc--][/span][!--/colorc--]
2005 Dec 10 16:47:50 result not "ok": ><2005 Dec 10 16:47:50 unable to validate mail access(1)

#2 morpheus.100

morpheus.100
  • Members
  • PipPipPip
  • Advanced Member
  • 145 posts

Posted 11 December 2005 - 02:58 AM

Well the right lines but rechech and google the last 2 lies of your code.

Im currently drunk but where did you declare this variable or assign a value to it in the provided script.

, $messageproper




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users