//ByteArrayDataSource ds = new ByteArrayDataSource ("A short little message".getBytes (), MimeEnumType.eTextXml.toString ());
//ds.setName ("test.txt");
//message.attach (ds);
if (file != null) {
message.attachFile (file);
}
message.prepareToSend ();
}
catch (MessagingException exc) {