addAttachment (file, null);
try { attachments.add (makeTextBodyPart (contents)); }  catch (MessagingException ex) { throw new EmailException ("Cannot add attachment to email message", ex); }
    public void addAttachment (File file)        throws EmailException    {        addAttachment (file, null);    }