Advertisement
Guest User

Untitled

a guest
May 12th, 2017
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. <?php
  2. $Snumber = $_POST["Snumber"];
  3. $Lname = $_POST["Lname"];
  4. $approved = $_POST["approved"];
  5. $activity = $_POST["activity"];
  6. $month = $_POST["month"];
  7. $day = $_POST["day"];
  8. $year = $_POST["year"];
  9. $hours = $_POST["hours"];
  10. $Sname = $_POST["Sname"];
  11. $email = $_POST["email"];
  12. $phone = $_POST["phone"];
  13. if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
  14.  
  15. //multiple recipients
  16. $to = "nmcclaran@yahoo.com";
  17. $to = "$email";
  18.  
  19. $subject= "Community Service Conformation";
  20.  
  21. $message="We have recieved that " . $Lname.",".$Snumber." has completed ".$activity." on ".$day.",".$month.",".$year." for ".$hours." hours. Please confirm that you are ".$Sname." and had supervised this project. Please foward this email to nmcclaran@yahoo.com";
  22.  
  23. $headers='MIME-Version: 1.0'. "\r\n";
  24. $headers.='Content-type: text/html; charset=iso-8859-1'. "\r\n";
  25.  
  26. $headers .= 'To:Supervisor <$email>, Mrs. Ullery <nmcclaran@yahoo.com>'."\r\n";
  27. $headers .= 'From: Mrs Ullery <nmcclaran@yahoo.com>'."\r\n";
  28. $headers .= 'Cc: nmcclaran@yahoo.com'. "\r\n";
  29. $headers .= 'Bcc: nmcclaran@yahoo.com'. "\r\n";
  30.  
  31. mail($to, $subject, $message, $headers);
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement