Hi everyone,
I have a mail form. It used to work in a different version of PHP, version 4.something… now, after changing hosts, the mail form doesnt work anymore. The PHP version that my host installed on their server is PHP 5.1.4, I can receive the email but there is no message.
here is my code:
<?php
$sendTo = "info@advkast.com";
$subject = "Advkast Site Reply";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["address"] . ">
";
$headers .= "Reply-To: " . $_POST["address"] . "
";
$headers .= "Return-Path: " . $_POST["address"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>
It only sends the email, with subject and sender name but no message.