get('mail_write')); if (isset($_GET['to'])) { if (isset($_POST['submit'])) { if ($_POST['from'] != "" && $_POST['mail'] != "" && $_POST['subject'] != "" && $_POST['message'] != "") { $header = 'From: ' . $_POST['from'] . ' <' . $_POST['mail'] . ">\n"; $header .= 'Reply-To: ' . $_POST['mail'] . "\n"; $header .= "Content-Type: text/html\n"; if (mail($_GET['to'], $_POST['subject'], $_POST['message'], $header)) { echo msg('success', sprintf($lang->get('mail_success'), $_GET['to'])); } else { echo msg('fail', $lang->get('mail_fail')); } } else { echo msg('info', $lang->get('all_fields') . ' {back}'); } } else { ?>

get('mail_write_to'), $_GET['to']); ?>

get('admins_username'); ?>:

get('admins_mail'); ?>:

get('mail_subject'); ?>:

get('mail_message'); ?>:

get('mail_success')); } require_once '../inc/footer.php'; ?>