Solved

Mark Message as important, mail function

Posted on 2006-11-20
7
490 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

726 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