out.write(dash);
    public void writeTo(OutputStream out) throws IOException, MessagingException {        parse();        String boundary = type.getParameter("boundary");        byte[] bytes = boundary.getBytes();        for (int i = 0; i < parts.size(); i++) {            BodyPart bodyPart = (BodyPart) parts.get(i);            out.write(dash);            out.write(bytes);            out.write(crlf);            bodyPart.writeTo(out);            out.write(crlf);        }        out.write(dash);        out.write(bytes);        out.write(crlf);        out.flush();    }