} //end of if statement ((body.indexOf("<") > -1) && (body.indexOf(">") > -1))
*/
messageBodyPart.setContent(body, messageContext);
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
messageBodyPart = new MimeBodyPart();
HashMap attchmentids = mailmessage.getAttachFileIDs();
if ((attchmentids != null) && (attchmentids.size() != 0))
{
Set col = attchmentids.keySet();
Iterator itt = col.iterator();
int i = 0;
while (itt.hasNext())
{
String fileid = (String) itt.next();
String name = (String) attchmentids.get(fileid);
cvdl.setSql("email.savedraftattchment");
cvdl.setInt(1, messageid);
cvdl.setString(2, name);
cvdl.setInt(3, Integer.parseInt(fileid));
cvdl.executeUpdate();
cvdl.clearParameters();
i++;
CvFileFacade cvfile = new CvFileFacade();
CvFileVO cvfilevo = cvfile.getEmailAttachment(userId, Integer.parseInt(fileid), this.dataSource);
String path = cvfilevo.getPhysicalFolderVO().getFullPath(null, true) + cvfilevo.getName();
DataSource source = new FileDataSource(path);
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName(name);
multipart.addBodyPart(messageBodyPart);
} //end of while loop(itt.hasNext())
} //end of if statement ((attchmentids != null) && (attchmentids.size() != 0))
// delete mail from drafts
if (mailmessage.getMessageID() != 0)