Hi
//Set the BCC address of the Recipients
if (bcc != null) {
strTokbcc = new StringTokenizer(bcc,";,");
while(strTokbcc.hasMoreTokens()) {
String strbcc = (strTokbcc.nextToken());
Address[] bccaddress = InternetAddress.parse(strbcc);
msg.addRecipients(Message.RecipientType.BCC, bccaddress);
}
}
I use this peice of code to send bcc for multiple bcc addresses in my my
mail application, But if I send I am able to
see the To information in the bcc address, which should not be seen,
Can you tell me where I am wrong?
Thanks in advance!
Daniel.E
===========================================================================
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