Posted By

montejunto on 01/18/08


Tagged

mail send enviar


Versions (?)

Enviar e-mail


 / Published in: PHP
 

  1. $myname = "Me Myself";
  2. $myemail = "[email protected]";
  3.  
  4. $contactname = "Mister Contact";
  5. $contactemail = "[email protected]";
  6.  
  7. $message = "hello from happy me";
  8. $subject = "A mail not refused by Hotmail";
  9.  
  10. $headers .= "MIME-Version: 1.0
  11. ";
  12. $headers .= "Content-type: text/html; charset=iso-8859-1
  13. ";
  14. $headers .= "From: ".$myname." <".$myemail.">
  15. ";
  16. $headers .= "To: ".$contactname." <".$contactemail.">
  17. ";
  18. $headers .= "Reply-To: ".$myname." <$myreplyemail>
  19. ";
  20. $headers .= "X-Priority: 1
  21. ";
  22. $headers .= "X-MSMail-Priority: High
  23. ";
  24. $headers .= "X-Mailer: Just My Server";
  25.  
  26. mail($contactemail, $subject, $message, $headers);

Report this snippet  

You need to login to post a comment.