|
-
Jul 9th, 2006, 07:34 PM
#1
Thread Starter
Addicted Member
[RESOLVED] How to set priority in sending emails
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
-
Jul 10th, 2006, 12:37 AM
#2
Re: How to set priority in sending emails
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:
-
Jul 10th, 2006, 12:47 AM
#3
Thread Starter
Addicted Member
Re: How to set priority in sending emails
It isn't working.
It sets to "Normal" not "High".
-
Jul 10th, 2006, 02:25 AM
#4
Re: How to set priority in sending emails
Hmmm, have a go at using:
Importance: High
-
Jul 10th, 2006, 12:41 PM
#5
Thread Starter
Addicted Member
Re: How to set priority in sending emails
-
Jul 10th, 2006, 01:24 PM
#6
Re: How to set priority in sending emails
Can you show me your code?
-
Jul 10th, 2006, 01:27 PM
#7
Thread Starter
Addicted Member
Re: How to set priority in sending emails
$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);
-
Jul 10th, 2006, 01:27 PM
#8
Re: How to set priority in sending emails
is the correct way orf doing it.
-
Jul 10th, 2006, 01:34 PM
#9
Re: How to set priority in sending emails
 Originally Posted by onh1986
$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);
It works using priority. What mail client are you using?
-
Jul 11th, 2006, 09:32 AM
#10
Thread Starter
Addicted Member
Re: How to set priority in sending emails
My mail SMTP is: mail.onh1986.com.
-
Jul 11th, 2006, 01:48 PM
#11
Re: How to set priority in sending emails
I mean the program you are using to read the email.
-
Jul 11th, 2006, 05:58 PM
#12
Thread Starter
Addicted Member
Re: How to set priority in sending emails
I use Outlook Express 6.0 to read my emails.
-
Jul 12th, 2006, 02:15 AM
#13
Re: How to set priority in sending emails
Send an email to adam (at) sccode (dot) com using your script and I'll have a look at the headers.
-
Jul 12th, 2006, 02:59 PM
#14
Thread Starter
Addicted Member
Re: How to set priority in sending emails
What do you mean about "adam (at) sccode (dot)"?
-
Jul 12th, 2006, 03:27 PM
#15
Re: How to set priority in sending emails
Send an email to my address using the PHP script.
-
Jul 12th, 2006, 03:37 PM
#16
Thread Starter
Addicted Member
Re: How to set priority in sending emails
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");
Last edited by john tindell; Jul 13th, 2006 at 03:34 AM.
-
Jul 12th, 2006, 04:12 PM
#17
Re: How to set priority in sending emails
you need to use Priority, not importance.
-
Jul 12th, 2006, 04:17 PM
#18
<?="Moderator"?>
Re: How to set priority in sending emails
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);
-
Jul 12th, 2006, 06:40 PM
#19
Thread Starter
Addicted Member
Re: How to set priority in sending emails
I've just sent an email by using the code:
mail ("[email protected]","Subject","Message","Priority: High");
Last edited by john tindell; Jul 13th, 2006 at 03:00 AM.
-
Jul 12th, 2006, 11:03 PM
#20
Re: How to set priority in sending emails
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?
-
Jul 13th, 2006, 03:19 AM
#21
Thread Starter
Addicted Member
Re: How to set priority in sending emails
Now it's working.
Thank you very much.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|