Solved

Mark Message as important, mail function

Posted on 2006-11-20
7
464 Views
Last Modified: 2008-03-17
I have a simple mail form.  I would like to mark it important.  ie add the little red flag in outlook.  Is it possible to do in PHP?
mail($to, $subject, $body, $header);
0
Comment
Question by:livegirllove
  • 3
  • 2
7 Comments
 
LVL 35

Expert Comment

by:Raynard7
ID: 17984914
Hi,

This relates to the header that is sent.

I do not think this is available in the standard mail class, however with some of the extensions this is possible.

I use the one below - that has the ability to set the priority of an email.

http://phplibex.sourceforge.net/classmimemail.html
0
 
LVL 1

Author Comment

by:livegirllove
ID: 17984927
ah ok.  tx
0
 
LVL 11

Accepted Solution

by:
ch2 earned 500 total points
ID: 17984949
Adding headers should do the trick

$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:livegirllove
ID: 17984976
hmm.  that worked.

Technically Raynards answer is now incorrect because you can with the standard mail class add the High Priority.

I'm going to post to community support because I don't know how I can change it.
0
 
LVL 1

Author Comment

by:livegirllove
ID: 17985201
thanks for the closed question help ch2!!

worked perfectly.
0
 
LVL 11

Expert Comment

by:ch2
ID: 17985524
nice it worked :)

thanks for the points.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

4 Experts available now in Live!

Get 1:1 Help Now