Advertisement
scootertehcoder

php

Apr 27th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <!Doctype html>
  2. <html>
  3. <body>
  4. <?php
  5. $name = $_POST['name'];
  6. $visitor_email = $_POST['email'];
  7. $message = $_POST['message'];
  8. ?>
  9. <?php
  10. $email_from = 'automail@jeairsoft.com';
  11. $email_subject = "New Form submission";
  12. $email_body = "You have received a new message from the user $name.\n". "Here is the message:\n $message". $to = "scooterprint@aol.com";
  13. $headers = "From: $email_from \r\n";
  14. $headers .= "Reply-To: $visitor_email \r\n";
  15. mail($to,$email_subject,$email_body,$headers) ?>
  16. </body>
  17. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement