Advertisement
Guest User

Untitled

a guest
Nov 10th, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2. $headers .= "Reply-To:\r\n";
  3. $headers .= "Return-Path:\r\n";
  4. $headers .= "From: >\r\n";
  5. $subject .= "Payment";
  6. header('Content-type: application/json');
  7.  
  8. $status = array(
  9.  
  10. 'type'=>'success',
  11.  
  12. 'message'=>' '
  13.  
  14. );
  15.  
  16.  
  17. $First_Name = @trim(stripslashes($_POST['First_Name']));
  18.  
  19. $Last_Name = @trim(stripslashes($_POST['Last_Name']));
  20.  
  21.  
  22.  
  23.  
  24.  
  25. $email_to = 'test@gmail.com';//replace with your email
  26.  
  27.  
  28. $body = 'First name: ' . $First_Name . "\n\n" . 'Last Name: ' . $Last_Name . "\n\n" . 'Message: ' . $message;
  29.  
  30.  
  31. $success = @mail($email_to, $subject, $body, 'From: <'.$email_from.'>');
  32.  
  33.  
  34. header("Location: /done.html");
  35.  
  36. die;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement