25-10-2005, 10:19
|
|
|
חבר מתאריך: 27.07.04
הודעות: 38
|
|
האם הקוד נכון לMAIL FORM ???
<?php
// ************Begin Configure***************
//Put where you want the email to go
$mailto = "your@email.com";
//Put your subject in here
$subject = "Your subject here.";
//Put where to redirect to after sending the email
$redirect = "thankyoupage.html";
// ************End Configure****************
foreach($HTTP_POST_VARS as $key => $value) {
$message .= $key . ': ' . $value;
$message .= "\n"; //Note the double quotes
}
if (@mail($mailto, $subject, $message)) {
header("Location: $redirect");
} else {
// This echo's the error message if the email did not send.
// You could change the text in between the <p> tags.
echo('<p>Mail could not be sent. Please use your back button to try again.</p>');
}
?>
_____________________________________
Hmeeel Inc
|