Posted By

orazal on 01/16/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

umang_nine
aleksanderek


Flash to PHP Mail


 / Published in: PHP
 

  1. <?php
  2. $name = utf8_decode($HTTP_POST_VARS["name"]);
  3. $email = utf8_decode($HTTP_POST_VARS["email"]);
  4. $recipient = "[email protected]";
  5. $msg = utf8_decode($HTTP_POST_VARS["message"]);
  6. $mail_body = nl2br($msg);
  7. $subject = "Formulaire Ítre terre";
  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.