public void setContent(Multipart part) throws MessagingException { setDataHandler(new DataHandler(part, part.getContentType())); part.setParent(this);
public void setContent(Object content, String type) throws MessagingException { setDataHandler(new DataHandler(content, type));
    public void setContent(Multipart part) throws MessagingException {        setDataHandler(new DataHandler(part, part.getContentType()));        part.setParent(this);    }