<?php
$recepient = "dimasan57@mail.ru";
$sitename = "CleancomputerUP.ru Ремонт компьютеров";
$name = trim($_POST["name"]);
$phone = trim($_POST["tel"]);
$time = trim($_POST["time"]);
$message1 = "Телефон: $phone ";
$message2 = "Имя: $name ";
$message3 = "Время: $time ";
$pagetitle = "Новая заявка с сайта \"$sitename\"";
mail($recepient, $pagetitle, $message1, $message2, $message3, "Content-type: text/plain; charset=\"utf-8\"\n From: $recepient");
?>
<form method="post" id="userForm" class="formResponsive" action="mail.php">
<!-- Do not remove this ID, it is used to identify the page so that the pagination script can work correctly -->
<div id="rsform_3_page_0">
<input type="tel" value="" size="20" placeholder="+7" name="tel" id="tel" required="required" class="rsform-input-box" />
<input type="text" value="" size="20" placeholder="Введите имя" name="name" id="name" required="required" class="rsform-input-box name" />
<p style=" font-size: 12px;">Время звонка</p>
<input type="time" value="" size="20" placeholder="" name="time" id="time" required="required" class="rsform-input-box name" />
<button type="submit" name="form[send]" id="send" class="btn btn-primary btn-medium rsform-submit-button" a href="#" onclick="ga('send', 'Отправил форму', 'knopka', 'otpravka')" zvonok >ОСТАВИТЬ ЗАЯВКУ</button>
</div>
<input type="hidden" name="form[formId]" value="3"/></form>
Если стоят все три значения полей в функции mail, то приходит пустое письмо, а если одно, то оно приходит