submit(e) {
    let data = new FormData(e.target);
    fetch("скрыл", {
      method: "POST",
      body: data,
    })
      .then((response) => {
        console.log(response);
      })
      .catch((err) => console.error(err));
    e.preventDefault();
  }
header("Access-Control-Allow-Origin: скрыл");
  $lastName = trim($_POST["lastName"]);
  $firstName = trim($_POST["firstName"]);
  $tel = trim($_POST["tel"]);
  $email = trim($_POST["email"]);
  $service = trim($_POST["service"]);
  $sub = "Обратная связь";
  $message = "Фамилия: $lastName\r\nИмя: $firstName\r\nТелефон: $tel\r\nПочта: $email\r\nУслуга: $service";
  $verify = mail("ar1esmax1mwork@gmail.com", $sub, "New order", $message, "Content-type: text/html; charset=utf-8\r\nFrom: $email");
  if ($verify == 'true'){
    echo "Сообщение отправлено";
  } else{
    echo "Сообщение не отправлено";
  }
Хостинг Beget. SSL стоит, все домены настроены, контакт с backend есть. Но сообщение просто не идут и всё.