Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $Snumber = $_POST["Snumber"];
- $Lname = $_POST["Lname"];
- $approved = $_POST["approved"];
- $activity = $_POST["activity"];
- $month = $_POST["month"];
- $day = $_POST["day"];
- $year = $_POST["year"];
- $hours = $_POST["hours"];
- $Sname = $_POST["Sname"];
- $email = $_POST["email"];
- $phone = $_POST["phone"];
- if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
- //multiple recipients
- $to = "nmcclaran@yahoo.com";
- $to = "$email";
- $subject= "Community Service Conformation";
- $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";
- $headers='MIME-Version: 1.0'. "\r\n";
- $headers.='Content-type: text/html; charset=iso-8859-1'. "\r\n";
- $headers .= 'To:Supervisor <$email>, Mrs. Ullery <nmcclaran@yahoo.com>'."\r\n";
- $headers .= 'From: Mrs Ullery <nmcclaran@yahoo.com>'."\r\n";
- $headers .= 'Cc: nmcclaran@yahoo.com'. "\r\n";
- $headers .= 'Bcc: nmcclaran@yahoo.com'. "\r\n";
- mail($to, $subject, $message, $headers);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement