Last active
June 11, 2019 15:05
-
-
Save akkord87/46f59d1dfd3817cfc2791b06d08a2d01 to your computer and use it in GitHub Desktop.
Отправка email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$recepient = "[email protected]"; | |
$sitename = "el-case.ru"; | |
$name = trim($_POST["name"]); | |
$phone = trim($_POST["phone"]); | |
$email = trim($_POST["email"]); | |
$msg = trim($_POST["massage"]); | |
$message = "Имя: $name \nТелефон: $phone \nПочта: $email \nСообщение: $msg"; | |
$pagetitle = "Вопрос от пользователя \"$sitename\""; | |
mail($recepient, $pagetitle, $message, "Content-type: text/plain; charset=\"utf-8\"\n From: $recepient"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment