code: @Override
      public void buildMimeMessage() throws EmailException {
  	try {
  	    // if the email has attachments then the base type is mixed,
  	    // otherwise it should be related
  	    if (this.isBoolHasAttachments()) {
  		this.buildAttachments();
  	    }
  	    else {
  		this.buildNoAttachments();
  	    }
  
  	}
  	catch (MessagingException me) {
  	    throw new EmailException(me);
  	}
  	super.buildMimeMessage();
      }
docs: Does the work of actually building the email.
  
  @exception EmailException if there was an error.