Results 1 to 5 of 5
  1. #1
    litpuvn is offline Member
    Join Date
    Oct 2010
    Posts
    10
    Rep Power
    0

    Default javamail > setReplyTo, setCCTo

    Hi All,

    I don't know if we can put to email header so that when receiver clicks on reply, the "CC" field is set with predefined value. It is more or less similar to serReplyTo function in MIMEMessage class.

    thank you for your reply.

    -Hoang Long

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,817
    Rep Power
    19

    Default

    Not sure what you;re asking here?

    Do you mean you are writing an email app and when someone clicks the reply button the CC field of the email screen is populated automatically? If so that's nothing to do with Javamail, and entirely down to you writing some code that ties the button click to an action that populates that field.

  3. #3
    litpuvn is offline Member
    Join Date
    Oct 2010
    Posts
    10
    Rep Power
    0

    Default

    thank you for paying attention to my question. The setReplyTo function is to help, when we send email out, and from receiver's mailbox, if he clicks on "reply" button then the value in "setReplyTo" will be appeared in "to" field of reciever's mail client.

    Similar to this function, i am wondering if there is a kind of function , let's call "setCCTo" so that, if we set value for it, then after sending email out, and after receiver clicks on reply button, the "CC" field of his mail client will be set equal to the value of "setCCTo".

    thank you for your time,

    -Hoang Long

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,817
    Rep Power
    19

    Default

    Oh.
    I see.

    I doubt it since Reply To on the receivers email program is going to simply reply to the sender (that's its job). "Reply to all" would reply to all in the sent list, but that would involve your CC candidate being CCed in the original email.

    Or put another way, there is no field defined in an email header (RFC whatever the number is) to do what you want, therefore there will be no mechanism on the receivers email program to handle it.

  5. #5
    litpuvn is offline Member
    Join Date
    Oct 2010
    Posts
    10
    Rep Power
    0

Similar Threads

  1. JavaMail API
    By eponcedeleon in forum Advanced Java
    Replies: 1
    Last Post: 02-28-2010, 12:39 AM
  2. Javamail
    By johniem in forum New To Java
    Replies: 1
    Last Post: 01-29-2010, 03:24 PM
  3. JavaMail Jar
    By rummy in forum Advanced Java
    Replies: 1
    Last Post: 01-21-2010, 03:51 PM
  4. Javamail
    By v_mallikarjun in forum Advanced Java
    Replies: 14
    Last Post: 04-18-2008, 07:32 PM
  5. Using JavaMail API
    By consult4u in forum Networking
    Replies: 0
    Last Post: 08-09-2007, 10:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •