"; $subject = substr(htmlspecialchars(trim($_POST["subject"])), 0, 80); if ($subject == "") $subject = "(No subject)"; $subject = "Fw: $subject"; $message = htmlspecialchars(trim($_POST["message"])); if ($message == "") stderr("Error", "No message text!"); $message = "Message submitted from ".getip()." at " . date("Y-m-d H:i:s") . ".\n" . "Note: By replying to this e-mail you will reveal your e-mail address.\n" . "---------------------------------------------------------------------\n\n" . $message . "\n\n" . "---------------------------------------------------------------------\n$SITENAME E-Mail Gateway\n"; $success = sent_mail($to,$from,$from_email,$subject,$message,"E-Mail Gateway",false); if ($success) stderr("Success", "E-mail successfully queued for delivery."); else stderr("Error", "The mail could not be sent. Please try again later."); } stdhead("E-mail gateway"); ?>
| Send e-mail to |
Note: Your IP-address will be logged and visible to the recipient to prevent abuse.
Make sure to supply a valid e-mail address if you expect a reply.