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
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

It would help if you posted the broken code.
PHP Code:$headers = "From: website@.com" . "\r\n" .
"Reply-To: noreply@.com" . "\r\n" .
"Importance: High" . "\r\n" .
"Content-type: text/html; charset=iso-8859-1" . "\r\n";
Found this on devshed, headers should contain:
So...PHP Code:$headers = $headers . "X-Priority: 2\nX-MSmail-Priority: high";
PHP Code:$headers = "From: website@.com" . "\r\n" .
"Reply-To: noreply@.com" . "\r\n" .
"X-Priority: 2\nX-MSmail-Priority: high" ."\r\n".
"Content-type: text/html; charset=iso-8859-1" . "\r\n";
Last edited by dwhyte85; 26th March 2010 at 11:59 AM.
Danny159 (26th March 2010)
Thanks, Dan

"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).
Probably shouldn't have posted that... going to get Viagra spam come through with high importance now![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)