Advertisement
Guest User

RPI PHP

a guest
Feb 19th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. $first_name = $_POST['first_name'];
  4. $surname = $_POST['surname'];
  5. $email = $_POST['email'];
  6. $msg = $_POST['message'];
  7. $to = "****************@gmail.com";
  8. $subject = "Get in Touch";
  9. mail($to, $subject, $msg, "From: " . $first_name . $surname);
  10. echo "Your Message has been sent.";
  11. header( 'Location: contactformsent.html' ) ;
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement