We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

luman on 06/29/06


Tagged

mail headers


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

tylerhall
katxorro70
Nix


mail headers


Published in: PHP 


  1. $headers = "X-Sender: My bussiness <info@mybussiness.com>\n";
  2. $headers .= "X-Mailer: PHP4\n"; //mailer
  3. $headers .= "X-Priority: 1\n"; //1 UrgentMessage, 3 Normal
  4. $headers .= "Return-Path: <info@mybussiness.com>\n";
  5. $headers .= "Message-ID: <".$now."@mybussiness.com>\n";
  6. $headers .= "MIME-Version: 1.0\n";
  7. $headers .= "X-MSMail-Priority: High\n";
  8. $headers .= "From: My bussiness <info@mybussiness.com>\n";
  9. $headers .= "Reply-To: My bussiness <info@mybussiness.com>\n";
  10. $headers .= "Content-Type: text/html; charset=iso-8859-1\n";

Report this snippet 

You need to login to post a comment.