final Vector<Object> vector = (Vector<Object>) object;
for (int i = 0; i < vector.size(); i++) {
final AttachContent content = (AttachContent) vector.get(i);
final File file = prepareFile(content);
messageBodyPart = new MimeBodyPart();
messageBodyPart.attachFile(file);
multipart.addBodyPart(messageBodyPart);
}
}
message.setContent(multipart);