Send E-mail with more then one attachment Blob
533287Jul 20 2007 — edited Jul 24 2007Hi all,
I d'like to send e-mails with JavaMail with more then one attachment. I obtain the attachments from the database as a Blob. How can i handle this? Other examples i found, working all with files from a physical disc, with a path.
......
Multipart mp = new MimeMultipart();
{
MimeBodyPart mbp = new MimeBodyPart();
mbp.setText("Info");
mp.addBodyPart(mbp);
}
.........
< Database select >
while( rs.next()) {
java.sql.Blob Attachment = rs.getBlob("att");
String Filename = rs.getString("nam");
String Filetype = rs.getString("ext");
.....
??
MimeBodyPart mbp = new MimeBodyPart();
??
.......
}
Please, is somebody here who can help my. Any suggestions are really appreciated. Thank's
Regards Rene