Posted By

orazal on 01/12/09


Tagged

mail


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

jfherring
fackz
umang_nine
nkrstevski


Simple Mail


 / Published in: PHP
 

  1. <?php
  2.  
  3. $name = $_POST["name"];
  4. $email = $_POST["email"];
  5. $recipient = "[email protected]";
  6. $mail_body = $_POST["message"];
  7. $subject = "Mail";
  8. $header = "From: ". $name . " <" . $email . ">
  9. ";
  10.  
  11. mail($recipient, $subject, $mail_body, $header);
  12. echo "success";
  13. ?>

Report this snippet  

You need to login to post a comment.