Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $if(isset($_POST['subject'],$_POST['Customer'],$_POST['Email'],$_POST['Phone'],$_POST['Comment'],$_POST['Product'],$_POST['Amount'],$_POST['Valid'])) {
- $if(isset($_POST['Name']) && !empty($_POST['Name'])) {
- echo "Spam Detected!";
- Die();
- }
- $subject = $_POST['subject'];
- $name = $_POST['Customer'];
- $from = $_POST['Email'];
- $phone = $_POST['Phone'];
- $message = $_POST['Comment'];
- $prod = $_POST['Product'];
- $cash = $_POST['Amount'];
- $valid = $_POST['Valid'];
- $to = "email@email.com";
- $body = '
- ';
- $headers .= "From: $from " . "Subject";
- $headers = "MIME-Version: 1.0" . "rn";
- $headers .= "Content-type:text/html;charset=UTF-8" . "rn";
- mail($to,$subject,$body,$headers);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement