new SupportedAttachmentPart(multipart,
"text/calendar; component=vevent", "event.ics", bouts
.toByteArray());
// Add attachment to multipart
multipart.addBodyPart(new TextBodyPart(multipart, bouts.toString()));
multipart.addBodyPart(bodypart);
try {
// Set multipart as message content
msg.setContent(multipart);