send1.php 664 B

1234567891011121314151617181920
  1. <?php
  2. $name = $_POST["name"];
  3. $surname = $_POST["surname"];
  4. $email = $_POST["email"];
  5. $phone = $_POST["phone"];
  6. $soo = $_POST["soo"];
  7. $message = $name . $surname . " оставил(а) заявку на сайте \n";
  8. $message .= "Телефон для связи " . $phone . "\n";
  9. $message .= $soo;
  10. $message = nl2br($message);
  11. $to = "provalenkoludmila@gmail.com";
  12. $from = $email;
  13. $subject = "Заявка";
  14. $subject = "=?utf-8?B?".base64_encode($subject)."?=";
  15. $headers = "From: $from\r\nReply-to: $from\r\nContent-type: text/html; charset=utf-8\r\n";
  16. mail($to, $subject, $message, $headers);
  17. echo "<script>window.location.href = 'contacts.php';</script>";
  18. ?>