A
A
Alexander2018-03-18 14:18:48
open server
Alexander, 2018-03-18 14:18:48

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

2 answer(s)
Z
zorca, 2018-03-18
@AleksandrB

5aae820bbd411830432266.jpeg

D
Denis, 2018-03-18
@sidni

Check for. Put the post data at the beginning of the script and check what the mail function returns, then it will be approximately clear what to do next

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question