Hi to all, I have created a java mail program to send mails. I have doubt regarding which method is used to get mail id which is given in CC and BCC list?. For To list i have used the below code.
Code :
MimeMessage mime = new MimeMessage(session);
mime.addFrom(bean.getFromAddress());