out.println("");
out.flush();
// invia il file codificato come uuencode
FileInputStream fis = new FileInputStream(f);
new BASE64Encoder().encodeBuffer(fis, os);
fis.close();
out.println("");
}
for(int i = 0; i < ssupList.size(); i++)
{
StreamSupplier ss = (StreamSupplier) (ssupList.get(i));
out.println("--" + boundaryID);
out.println("Content-Type: " + ss.getMimeType(i));
out.println("Content-Transfer-Encoding: base64");
if(ss.isMimeInLine(i))
out.println("Content-Disposition: in-line; filename=\"" + ss.getNomeFile(i) + "\"");
else
out.println("Content-Disposition: attachment; filename=\"" + ss.getNomeFile(i) + "\"");
out.println("");
out.flush();
InputStream istr = ss.getInput(i);
new BASE64Encoder().encodeBuffer(istr, os);
ss.notifyDone(istr, i);
out.println("");
}