try {
mmis = new MimeMessageInputStreamSource("test", new SharedByteArrayInputStream((content + sep + body).
getBytes()));
} catch (MessagingException e) {
}
mimeMessage = new MimeMessageCopyOnWriteProxy(mmis);
Collection<MailAddress> recipients = new ArrayList<MailAddress>();
recipients.add(new MailAddress("rec1", "domain.com"));
recipients.add(new MailAddress("rec2", "domain.com"));
mail = new MailImpl("mail1", new MailAddress("sender", "domain.com"), recipients, mimeMessage);
mail.setAttribute("testAttribute", "testValue");