Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Setting importance of a message using MimeMessage

Reply
Thread Tools

Setting importance of a message using MimeMessage

 
 
tewall@lycos.com
Guest
Posts: n/a
 
      09-21-2006
Is there anyway of setting the importance of a message to "high" using
MimeMessage for sending email?

 
Reply With Quote
 
 
 
 
Greg R. Broderick
Guest
Posts: n/a
 
      09-21-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote in
news:(E-Mail Removed) oups.com:

> 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


 
Reply With Quote
 
 
 
 
PofN
Guest
Posts: n/a
 
      09-21-2006

(E-Mail Removed) wrote:
> 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Message Importance using SMTP Mail Whyatt Python 1 07-16-2008 09:54 PM
javax.mail.internet.MimeMessage.setSubject problem with characterset (UTF-8) Zsolt Java 0 04-06-2004 09:38 AM
Extending MimeMessage Jim G Java 0 02-09-2004 07:08 PM
JavaMail MimeMessage - comma delimited? Edward A Thompson Java 9 10-10-2003 12:13 AM
JavaMail: MimeMessage customer headers Abraham Khalil Java 2 10-01-2003 06:23 AM



Advertisments