I send emails from my website by using PHP page.
But how can I set priority in my emails which I want to send to others?
Thanks
Printable View
I send emails from my website by using PHP page.
But how can I set priority in my emails which I want to send to others?
Thanks
Priority: Normal | Low | High
You need to add the above header with one of the following values. If you are using the mail() function, youcan set additional headers using the headers argument:
It isn't working.
It sets to "Normal" not "High".
Hmmm, have a go at using:
Importance: High
It isn't working either.
Can you show me your code?
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=windows-1256\r\n";
$headers .= "From: Express English <[email protected]>\r\n";
$headers .= "Importance: High\r\n";
mail ("[email protected]","Subject","Hello",$headers);
is the correct way orf doing it.
It works using priority. What mail client are you using?Quote:
Originally Posted by onh1986
My mail SMTP is: mail.onh1986.com.
I mean the program you are using to read the email.
I use Outlook Express 6.0 to read my emails.
Send an email to adam (at) sccode (dot) com using your script and I'll have a look at the headers.
What do you mean about "adam (at) sccode (dot)"?
Send an email to my address using the PHP script.
I've sent an email to "[email protected]" using my PHP script and I've used the code:
mail ("[email protected]","Subject","Message","Importance: High");
you need to use Priority, not importance.
I used X-Priority and it seemed to work for me
Code:priority
2 = low
3 = normal
1 = high "X-Priority: 1 (Highest)"
PHP Code:$headers = "From: name <[email protected]>\r \n";
$headers .= "X-Priority: ". $priority ."\r \n ";
mail('[email protected]','subject of message','message of email',$headers);
I've just sent an email by using the code:
mail ("[email protected]","Subject","Message","Priority: High");
I received that email and it is flagged as High priority by my mail client, so I'd say its working :). You can check in OE6 by looking at the headers for an email and look for "Priority High". You might in addition want to give X-Pritory a try as suggested by John.
Also, do you think you could edit your posts so as not to include my email address in plain text?
Now it's working.
Thank you very much.