Hi,
    You can send multiple mails in CC field, by using a loop. you are true in syaying 
you need to use the separator. Hope the following piece of code will help you.

  InternetAddress [] addressCC=new InternetAddress[k];
   StringTokenizer stCC1= new StringTokenizer(CC,",");
   while(stCC1.hasMoreTokens())
   {
         firstPartCC1=stCC1.nextToke();                     addressCC[l]= new 
InternetAddress(firstPartCC1) ;

             l=l+1;

       }
message.setRecipients(Message.RecipientType.CC,addressCC);



With best regards,
Smita Kotnis.

 Lorena Carlo <[EMAIL PROTECTED]>:

> Hello everybody,
>
> Can somebody tell me how can I send more than one copy in the cc field
> of a
> mail using JavaMail.  Do I have to use some kind of separator?.
>
> Thanks in advance,
>
> Lorena Carló
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

-------------------------------------------------
This mail helped a tree grow. Know more at http://green.sify.com

Take the shortest route to success!
Click here to know how http://education.sify.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to