Which method is used to get mail ids given in CC and BCC list in JavaMail?
<p>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.</p>

<p>Code :<br>
MimeMessage mime = new MimeMessage(session);<br>
mime.addFrom(bean.getFromAddress());</p>
