Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <?php
  2. +$from = "thijmenpeters.99@gmail.com";
  3. +$to = "thijmenpeters.99@gmail.com";
  4. +$name = Trim(stripslashes($_POST['name']));
  5. +$email = Trim(stripslashes($_POST['email']));
  6. +$message = Trim(stripslashes($_POST['message']));
  7. +$promo = Trim(stripslashes($_POST['promo']));
  8. +
  9. +$body ="";
  10. +$body .="Name: ";
  11. +$body .=$name;
  12. +$body .="\n";
  13. +$body .="Email: ";
  14. +$body .=$email;
  15. +$body .="\n";
  16. +$body .="Message: ";
  17. +$body .=$message;
  18. +$body .="\n";
  19. +$body .="Promo accepted? ";
  20. +$body .=$promo;
  21. +$body .="\n";
  22. +
  23. +
  24. +$go = mail($to, $subject, $body, "From:<$from>");
  25. +
  26. +if($go){
  27. + print("Success!");
  28. +}
  29. +else{
  30. + print("Unable to send!!");
  31. +}
  32. +
  33. +
  34. +?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement