final String sFrom = m.sFrom!=null ? m.sFrom : this.sDefaultFrom;
if (sFrom==null)
return false;
final Sendmail sm = new Sendmail(sFrom, this.sServerHost, this.iServerPort);
final TreeSet<String> ts = new TreeSet<String>(this.sDefaultTo);
ts.addAll(m.sTo);
if (ts.size()==0)
return false;
final Mail mail = new Mail();
mail.sFrom = sFrom;
mail.sTo = Message.setToList(ts);
mail.sBody = m.sMessage!=null ? m.sMessage : this.sDefaultMessage;
mail.sSubject = m.sSubject!=null ? m.sSubject : this.sDefaultSubject;
if (mail.sBody==null || mail.sSubject==null)
return false;
return sm.send(mail);
}