TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   php mail() headers questions (http://www.talkphp.com/general/2830-php-mail-headers-questions.html)

boycoda 05-21-2008 03:58 PM

php mail() headers questions
 
Hello guys / gals,

I would like to know a couple of things...

I have a php mail form, quite simple and straight foward.

However, I have noticed on an email that I recieved that the importance of this email was normal, so no 'exclamation mark' appeared, however.. the font color of the email headers (to, from, date, subject) etc were in red.

How the hell?

I would really like to know how this is done, and if it can be done in php.. (non oop code please).

Thanks in advance.

ReSpawN 05-21-2008 05:03 PM

Non of the current browsers that are free offer support for this, seeing that they've got there own priority system.

It's used as:
PHP Code:

                $headers .= "X-Priority: 1" "\r\n";
                
$headers .= "Priority: Urgent" "\r\n";
                
$headers .= "Importance: High""\r\n";
                
$headers .= "X-MSMail-Priority: High" "\r\n"

Also can be pushed into an array using $headers = array(); $headers[] = ''; :) Print it out in foreach.

boycoda 05-22-2008 08:16 AM

Thanks for that, but i'm already using this sort of thing. However, when the email comes through, it is red. Only an exclamation mark appears.

Nosbod 05-22-2008 10:17 AM

Hello

When we changed servers, I had to change my headers to end with just "\n" and not "\r\n"

Probably wont help for you but thought id at it just in case.

boycoda 05-23-2008 03:53 PM

Ignore my original post above, I realised that the messaged was flagged. However, when the email came through, they made it automatically appear flagged when it came through.

Does anyone know what the headers tag is about automatically displaying an email as flagged (follow up)?

ReSpawN 05-23-2008 09:40 PM

Flagged as ...? I think somewhere I got lost in the translation here. Do you mean CC & BCC addresses?


All times are GMT. The time now is 12:47 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0