Setting importance of a message using MimeMessage

Discussion in 'Java' started by tewall@lycos.com, Sep 21, 2006.

  1. Guest

    Is there anyway of setting the importance of a message to "high" using
    MimeMessage for sending email?
    , Sep 21, 2006
    #1
    1. Advertising

  2. wrote in
    news::

    > 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
    Greg R. Broderick, Sep 21, 2006
    #2
    1. Advertising

  3. PofN Guest

    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.
    PofN, Sep 21, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Abraham Khalil

    JavaMail: MimeMessage customer headers

    Abraham Khalil, Sep 30, 2003, in forum: Java
    Replies:
    2
    Views:
    1,618
    Abraham Khalil
    Oct 1, 2003
  2. Edward A Thompson

    JavaMail MimeMessage - comma delimited?

    Edward A Thompson, Oct 8, 2003, in forum: Java
    Replies:
    9
    Views:
    5,601
    GaryM
    Oct 10, 2003
  3. Jim G

    Extending MimeMessage

    Jim G, Feb 9, 2004, in forum: Java
    Replies:
    0
    Views:
    728
    Jim G
    Feb 9, 2004
  4. Whyatt
    Replies:
    1
    Views:
    465
  5. Jason Kistler

    Setting Importance....having issues ! ! !

    Jason Kistler, Oct 29, 2004, in forum: ASP General
    Replies:
    3
    Views:
    200
    Aaron [SQL Server MVP]
    Oct 29, 2004
Loading...

Share This Page