Advertisement
Guest User

Untitled

a guest
Aug 9th, 2017
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.83 KB | None | 0 0
  1. <?php
  2. $firstname = $_POST['firstname'];
  3. $value2 = $_POST['value2'];
  4. $value3 = $_POST['value3'];
  5. $toApplicant = $_POST['ApplicantsEmail'];
  6. $to = 'your@email.com';
  7.  
  8. // this is taking care of the e-mail
  9. $subject = "THIS-IS-YOUR-SUBJECT";
  10. $content =
  11. '<p><b>First Name: </b>' . $firstname . '</p></br>' .
  12. '<p><b>Filed One: </b>' . $value2 . '</p></br>' .
  13. '<p><b>Filed One: </b>' . $value3 . '</p></br>';
  14.  
  15. // To send HTML mail, the Content-type header must be set
  16. $headers = "Return-Path: YOUR NAME <your@email.com> \r\n";
  17. $headers .= "From: YOUR NAME <your@email.com> \r\n";
  18. $headers .= "Content-type: text/html; charset=UTF-8; \r\n";
  19.  
  20.  
  21. // Mail it and redirect if success or fail
  22. if (mail($to, $subject, $content, $headers) && mail($toApplicant, $subject, $content, $headers))
  23. echo 'MAIL SENT!';
  24. else
  25. echo 'MAIL NOT SENT!';
  26.  
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement