MimeMessage forward = new MimeMessage(session);
forward.setSubject("Fw. "+message.getSubject());
forward.setFrom(new InternetAddress(mailFrom));
for(int i=0;i<toArray.length;i++) {
forward.addRecipient(Message.RecipientType.TO, new InternetAddress(toArray[i]));
}
for(int i=0;i<ccArray.length;i++) {
forward.addRecipient(Message.RecipientType.CC, new InternetAddress(ccArray[i]));
}
for(int i=0;i<bccArray.length;i++) {
forward.addRecipient(Message.RecipientType.BCC, new InternetAddress(bccArray[i]));
}
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setText(forwardSubject);