_content_obj = new MimeMultipart(bds);
return ((byte[])content).length;
}
if (content instanceof String) {
String multipart = (String) content;
_content_obj = new MimeMultipart(new StringDataSource(multipart,
contentType, charSet));
return multipart.length();
}
throw new IllegalArgumentException(
"Content object needs to be a Multipart object, byte[], " +