public boolean sendEMailAttachments(int AD_User_ID,String subject,String message,Collection<File> attachments,boolean html){
  MUser to=MUser.get(getCtx(),AD_User_ID);
  String toEMail=to.getEMail();
  if (toEMail == null || toEMail.length() == 0) {
    log.warning("No EMail for recipient: " + to);
    return false;
  }
  EMail email=createEMail(null,to,subject,message,html);
  if (email == null)   return false;
  email.addAttachments(attachments);
  try {
    return sendEmailNow(null,to,email);
  }
 catch (  Exception ex) {
    log.severe(getName() + " - " + ex.getLocalizedMessage());
    return false;
  }
}

public boolean sendEMailAttachments ( int AD_User_ID , String subject , String message , Collection < File > attachments , boolean html ) { MUser to = MUser . get ( getCtx ( ) , AD_User_ID ) ; String toEMail = to . getEMail ( ) ; if ( toEMail == null || toEMail . length ( ) == 0 ) { log . warning ( "No EMail for recipient: " + to ) ; return false ; } EMail email = createEMail ( null , to , subject , message , html ) ; if ( email == null ) return false ; email . addAttachments ( attachments ) ; try { return sendEmailNow ( null , to , email ) ; } catch ( Exception ex ) { log . severe ( getName ( ) + " - " + ex . getLocalizedMessage ( ) ) ; return false ; } }
send email from request user - with trace
