Posted By

michaelfox on 04/20/09


Tagged

email textmate debug message contact


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

tekbomb
vali29


Send E-mail


 / Published in: PHP
 

  1. $to = 'First Last <[email protected]>';
  2. $subject = 'lorem ipsum';
  3. $header[] = "From: " . stripslashes($name) . " <" . stripslashes($email) . ">";
  4.  
  5. $body = "--------------------------------------------------- Message Details ---n"
  6. . " Name: " . stripslashes($name) . "n"
  7. . " E-mail: " . stripslashes($email) . "n"
  8. . " Company: " . stripslashes($company) . "n"
  9. . " Phone: " . stripslashes($telephone) . "n"
  10. . "----------------------------------------------------------- Message ---n"
  11. . stripslashes($message) . "n"
  12. . "-----------------------------------------------------------------------n";
  13.  
  14. mail($to, $subject, $body, implode("rn", $header));

Report this snippet  

You need to login to post a comment.