Answer the question
In order to leave comments, you need to log in
Why is the message not coming?
<?php
$ur_mail = [email protected]';
$orrad = 'Оренбургский радиатор - заказ';
$name = $_POST['name'];
$secname = $_POST['secname'];
$sername = $_POST['sername'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$adress = $_POST['adress'];
$house = $_POST['house'];
$kvartir = $_POST['kvartir'];
$info = $_POST['info'];
$recepient = "--";
$sitename = "Оренбургский радиатор - заказ";
$message = "Имя: $name \nТелефон: $phone \nТекст: $adress";
$pagetitle = "Новая заявка с сайта \"$sitename\"";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
mail($recepient, $pagetitle, $message, "Content-type: text/plain; charset=\"utf-8\"\n From: $recepient");
header( 'Location: ../page_order.php?action=completion');
}
else {
echo 'Ошибка';
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question