Jump to content

email doesnt get sent...


Recommended Posts

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 = "[email protected]" ;

$subject = "L3G4CY Feedback Form" ;

$formurl = "http://www.l3g4cy.com/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)

Link to comment
https://forums.phpfreaks.com/topic/3017-email-doesnt-get-sent/
Share on other sites

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.