\r\n"; $redirect = "http://openpgpjs.org/"; /* -------------------------------------------------------------------------- */ /* input -------------------------------------------------------------------- */ $user=substr(trim($_POST["mail"]), 0, SMALL_LIMIT); $message=substr(trim($_POST["message"]), 0, LARGE_LIMIT); /* -------------------------------------------------------------------------- */ /* send the request --------------------------------------------------------- */ if (filter_var($user, FILTER_VALIDATE_EMAIL)) { $headers = "From: $user\r\n"; } if (!empty($message)) mail($to, $subject, $message, $headers); /* -------------------------------------------------------------------------- */ /* Redirect browser */ header("Location: " . $redirect); /* -------------------------------------------------------------------------- */ ?>