Is there anyway of setting the importance of a message to "high" using
MimeMessage for sending email?
Greg R. Broderick - 21 Sep 2006 22:05 GMT
> 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
PofN - 21 Sep 2006 22:18 GMT
> 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.