Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with CC

843830Apr 14 2003 — edited Apr 14 2003
I am having problem with CC function/part of the Java Mail API. Could anybody help me how to combine or concat more than one email address to CC.

Like in outlook if we give cc:abc@XYZ.com;def@XYZ.com;ijk@XYZ.com.

we can separate the email addresses by a semicolen.

How do I do it using the JAVA MAIL.

I am using the
msg.setRecipients(Message.RecipientType.CC)

option and dont know how to pass the "cc" String i.e what is the separator between the strings.

Thanks
Ashish
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2003
Added on Apr 14 2003
1 comment
78 views