TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-21-2008, 03:58 PM   #1 (permalink)
The Wanderer
 
Join Date: Mar 2008
Location: United Kingdom
Posts: 22
Thanks: 1
boycoda is on a distinguished road
Default 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.
Send a message via MSN to boycoda Send a message via Skype™ to boycoda
boycoda is offline  
Reply With Quote
Old 05-21-2008, 05:03 PM   #2 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 05-22-2008, 08:16 AM   #3 (permalink)
The Wanderer
 
Join Date: Mar 2008
Location: United Kingdom
Posts: 22
Thanks: 1
boycoda is on a distinguished road
Default

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.
Send a message via MSN to boycoda Send a message via Skype™ to boycoda
boycoda is offline  
Reply With Quote
Old 05-22-2008, 10:17 AM   #4 (permalink)
The Visitor
 
Join Date: May 2008
Location: Norfolk
Posts: 1
Thanks: 0
Nosbod is on a distinguished road
Default

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.
Nosbod is offline  
Reply With Quote
Old 05-23-2008, 03:53 PM   #5 (permalink)
The Wanderer
 
Join Date: Mar 2008
Location: United Kingdom
Posts: 22
Thanks: 1
boycoda is on a distinguished road
Default

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)?
Send a message via MSN to boycoda Send a message via Skype™ to boycoda
boycoda is offline  
Reply With Quote
Old 05-23-2008, 09:40 PM   #6 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Flagged as ...? I think somewhere I got lost in the translation here. Do you mean CC & BCC addresses?
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:10 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design