Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $headers .= "Reply-To:\r\n";
- $headers .= "Return-Path:\r\n";
- $headers .= "From: >\r\n";
- $subject .= "Payment";
- header('Content-type: application/json');
- $status = array(
- 'type'=>'success',
- 'message'=>' '
- );
- $First_Name = @trim(stripslashes($_POST['First_Name']));
- $Last_Name = @trim(stripslashes($_POST['Last_Name']));
- $email_to = 'test@gmail.com';//replace with your email
- $body = 'First name: ' . $First_Name . "\n\n" . 'Last Name: ' . $Last_Name . "\n\n" . 'Message: ' . $message;
- $success = @mail($email_to, $subject, $body, 'From: <'.$email_from.'>');
- header("Location: /done.html");
- die;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement