Setting importance of a message using MimeMessage

T

tewall

Is there anyway of setting the importance of a message to "high" using
MimeMessage for sending email?
 
G

Greg R. Broderick

(e-mail address removed) wrote in

Is there anyway of setting the importance of a message to "high"
using MimeMessage for sending email?

You would add an RFC 2822 header to the message to indicate that the
message is high-priority. You would do this using the addHeader()
method of the MimeMessage class.

The exact header that you would add would be dependent upon which mail
client your recipient uses. The following headers should be added to
the email in order for most mail client applications to recognize the
email as high-priority:


Priority: Urgent
Importance: high


Cheers
GRB
 
P

PofN

Is there anyway of setting the importance of a message to "high" using
MimeMessage for sending email?

Its not a mime header, they are normal mail headers. But using them is
a waste of time. Many spammers use them so they have become a spam
indicator. Most spam filters throw such mails in the bin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top