daily pastebin goal
5%
SHARE
TWEET

send_mail.php

a guest Mar 14th, 2014 694 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     $to = $_REQUEST['from']; /*Your Email*/
  3.         $subject = "Messsage from website"; /*Issue*/
  4.         $date = date ("l, F jS, Y");
  5.         $time = date ("h:i A");        
  6.         $msg="
  7.         Name: $_REQUEST[Name]
  8.         Email: $_REQUEST[Email]
  9.         Subject: $_REQUEST[Subject]
  10.        
  11.         Message sent from website on date  $date, hour: $time.\n
  12.  
  13.         $_REQUEST[Message]";
  14.         Message:
  15.  
  16.         mail($to, $subject, $msg, "From: $_REQUEST[Email]");
  17.     mail( $_REQUEST[Email], 'Message Received', 'Their messages were received', "From: $to");
  18.         echo "Thank you for your message";
  19. ?>
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