Guest User

Untitled

a guest
May 3rd, 2018
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <?php
  2.  
  3. $email = "andy.watkins2@gmail.com";
  4.  
  5. // send an email to the given email address
  6.  
  7. $subject = "Math 23 ProofLogger: Points Alert";
  8. $body = "You're receiving this email because either Paul or a section leader recognized that though you have registered for the Math 23 ProofLogger, you haven't actually acquired any points yet, whether from hosting a party, proving, or listening, and they believe that by this point in the course it's wise for you to start doing more.\n\nThis is by no means a condemnation of how you're approaching the course, but we would remind you that proofs make up a substantial proportion of your grade, as well as your best shot at extra credit.";
  9. $body = wordwrap($body, 70);
  10. $headers = 'From: andy.watkins2@gmail.com' . "\r\n" .
  11. 'Reply-To: andy.watkins2@gmail.com' . "\r\n" .
  12. 'X-Mailer: PHP/' . phpversion();
  13.  
  14. if (mail($email, $subject, $body, $headers))
  15. echo "success!";
  16.  
  17.  
  18. ?>
Add Comment
Please, Sign In to add comment