wrcspkkit

email.php

May 5th, 2016
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.45 KB | None | 0 0
  1. <?php
  2.  
  3.    $to = "[email protected]"; // email address to send to
  4.    $from = $_POST['username'];
  5.    $subject = "You have an email from a PKKIT user";
  6.    $message = $from . " wrote the following:" . "\n\n" . $_POST['message'];
  7.    $headers = "From:" . $from;
  8.    
  9.    mail($to,$subject,$message,$headers);
  10.  
  11.   // echo "Mail Sent. We will contact you shortly.";
  12.  
  13.    header("Location: http://cd.bromley.ac.uk/PKKIT/login.html");
  14.  
  15. ?>
Add Comment
Please, Sign In to add comment