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
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 );
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,,);