Scripts
Menu
Home
Who Am I
Links
Projects
Scripts
Mailing
TrueRandom
XMLTree
E-Mail

Issues
Info
 
Mailing - 0.1

Mails a Form, very simple script, easy to use.

You can download the complete sourcefile here.
<?php
    
/*
      Simple FormMailer, just Like thousans other on the internet,
      Only this is the one I wanted to make and use.
      It's still in development, but working
      
      Author : Ronnie Rap
      Todo   : Make the require fields check the form
      Version: 0.1
      Status : Development
    */
    
    // Globals
    
$errormessage     "Error Sending Message";
    
$message     "$realname liet een bericht achter:\n\n$message\n";

    
// Additional Headers
    
$headers    "From: $sender\n";
    
$headers    .= "X-Mailer: PHP/" phpversion() . "\n";
    
$headers    .= "X-Priority: 4\n";
    
$headers    .= "X-MSMail-Priority: Low\n";
    
    
// Try to Send Message, show error page if mail not send.
    
if (mail($recipient$subject$message$headers))
    {
        
header ("Location: $redirect");
        exit(
0);
    }
?>

<html>
<head><title><?= $errormessage ?></title></head>
<body>
    <?= $errormessage ?>
</body>
</html>