Posted By

adamcoulombe on 10/06/09


Tagged

email php mail send


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

gregorio
satsuma
345crew


Sending a Simple email using PHP


 / Published in: PHP
 

nothing special :)

  1. function send_email($from,$to,$subject,$message){
  2. $header="From: <".$from.">
  3. ";
  4. $header.= 'MIME-Version: 1.0' . "
  5. ";
  6. $header.= 'Content-type: text/html; charset=iso-8859-1' . "
  7. ";
  8. $send_mail=mail($to,$subject,$message,$header);
  9. if(!$send_mail){ echo "ERROR"; }
  10. }

Report this snippet  

You need to login to post a comment.