Advertisement
Cavitt

Untitled

Mar 23rd, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2. // Contact subject
  3. $subject = $_REQUEST['subject'];
  4.  
  5. // Details
  6. $message = $_REQUEST['detail'];
  7.  
  8. // From
  9. $header="from: ".$_REQUEST['name']." <".$_REQUEST['customer_mail'].">";
  10.  
  11. // Enter your email address
  12. $to ='support@pcfixlimited.com';
  13.  
  14. $send_contact = mail($to, $subject, $message, $header);
  15.  
  16. // Check, if message sent to your email
  17. if($send_contact){
  18.     echo "We've received your contact information";
  19. }
  20. else {
  21.     echo "ERROR";
  22. }
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement