Danny159 Posted March 26, 2010 Posted March 26, 2010 Hey, I am trying to set the Importance of an email sent via the mail() command to high, but everything I try doesn't work. Does anyone have any idea how I can fix it? Dan
Danny159 Posted March 26, 2010 Author Posted March 26, 2010 $headers = "From: [email protected]" . "\r\n" . "Reply-To: [email protected]" . "\r\n" . "Importance: High" . "\r\n" . "Content-type: text/html; charset=iso-8859-1" . "\r\n";
dwhyte85 Posted March 26, 2010 Posted March 26, 2010 (edited) Found this on devshed, headers should contain: $headers = $headers . "X-Priority: 2\nX-MSmail-Priority: high"; So... $headers = "From: [email protected]" . "\r\n" . "Reply-To: [email protected]" . "\r\n" . "X-Priority: 2\nX-MSmail-Priority: high" ."\r\n". "Content-type: text/html; charset=iso-8859-1" . "\r\n"; Edited March 26, 2010 by dwhyte85 1
powdarrmonkey Posted March 26, 2010 Posted March 26, 2010 "Importance" is an Outlook-ism. Always check the RFC when doing anything like this (especially if it was originally designed by hacker legends, as SMTP was).
dwhyte85 Posted March 26, 2010 Posted March 26, 2010 Probably shouldn't have posted that... going to get Viagra spam come through with high importance now
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now