daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Feb 2nd, 2019 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     if(isset($_POST['web_site']) && $_POST['web_site'] != '') {
  3.         die();
  4.     }
  5.  
  6.     if(isset($_POST['submit'])){
  7.         $name=$_POST['name'];
  8.         $email=$_POST['email'];
  9.         $phone=$_POST['phone'];
  10.         $msg=$_POST['msg'];
  11.  
  12.         $to='my@email.com';
  13.         $subject='Enquiry from Website';
  14.         $message="Name : ".$name."\n\n"."Phone : ".$phone."\n\n"."Message : ".$msg;
  15.         $headers="From: ".$email;
  16.  
  17.         if(mail($to, $subject, $message, $headers)){
  18.             echo "<h1>Sent Successfully! Thank you"." ".$name.", We will contact you as soon as possible</h1>";
  19.         }
  20.         else{
  21.             echo "Something went wrong!";
  22.         }
  23.     }
  24. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top