PHP קוד:
<?
$sendTo = "maorshabom@gmail.com";
$sendFrom = $_POST['sendFrom'];
$subject = $_POST['subject'];
$message = '<html>
<head>
<title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1255"></meta>
</title>
</head>
<body>
Hello,
My name is $name , My phone number is $phone
I contect with you because
</body>
</html>';
$phone = $_POST['phone'];
$name = $_POST['name'];
$headers = "MIME-Version: 1.0 \r\n";
$headers .= "Content-type: text/html; charset=windows-1255 \r\n";
$headers .= "From: $sendFrom \r\n";
mail($sendTo, $subject, $message, $headers );
echo 'ההודעה נשלחה בהצלחה';
?>
זה שולח לי אימייל אבל לא עם הממשתנים שאני צריך
הוא שולח לי ככה
$name $phone