Found and tested this one, and it works! Just paste this behind the rest of your
php-code
- PHP: Select all
// Reply
// ---------------------------
$subject = "Bedankt voor uw bestelling.";
$headers = "From: MyName<madeonearth@telenet.be>\n";
$headers .= "X-Sender: <madeonearth@telenet.be>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: MyName<madeonearth@telenet.be>\n"; // Return path for errors
$recipient = $email;
$message = "Thank you for contacting me. I have received your e-mail and will reply as soon as possible.";
mail($recipient, $subject, $message, $headers);
?>
?>