Please help me with JavaMail

2002-01-30 Thread Lorena Carlo
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

Re: Please help me with JavaMail

2002-01-30 Thread BootedBear
Check out the following fragment: Properties props = new Properties(); props.setProperty( mail.host, yoursmtpserver.com ); try { Session mailSession = Session.getInstance( props, null ); MimeMessage message = new MimeMessage( mailSession );

Re: Please help me with JavaMail

2002-01-30 Thread Smita Kotnis
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,,);