Java - Setting Importance to High in Outlook

Does anyone know how I could get a message I send with JavaMail to be of high importance in Outlook?
I’ve tried

message.addheader("X-Priority", 3);

And it shows up in the listed headers, but doesn’t affect it’s importance in outlook.
Thanks.

Priority 3 is normal. You need 2 for high, or 1 for very high.


The headers you want to use, in descending order, are:
X-Priority: 1 (Highest)
X-Priority: 2 (High)
[for normal priority, do nothing]
X-Priority: 4 (Low)
X-Priority: 5 (Lowest)


I had tried 1 and 3, neither had any affect.
And outlook only supports chaning between low, regular, and high.

Try using 2 as your Priority setting.

Wow, 2 worked. Is 1 low and 2 high? :confused:
Thanks! :slight_smile:

No, 1 is “Very High”, 2 is “High”, 3 is “Normal”, 4 is “Low”, and 5 is “Very Low”. Outlook can only see 2-4, for some odd reason. Read my post above for the priority scale.