Posted By

k1ddo on 04/22/09


Tagged

php script e-mail


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

abhiomkar
vali29


Basic Send E-mail Script


 / Published in: PHP
 

  1. <?php
  2. define('TO_EMAIL','[email protected]');
  3. $email=$_REQUEST['email'];
  4. $name=$_REQUEST['name'];
  5. $phone=$_REQUEST['phone'];
  6. $comment=$_REQUEST['comment'];
  7. $message="Name:$name\nEmail: $email\nPhone:$phone\n\n$comment";
  8. $header="From: $email";
  9. mail(TO_EMAIL,'Subject line here',$message,$header);
  10.  
  11. ?>

Report this snippet  

You need to login to post a comment.