new StreamPipe().between(getClass().getResourceAsStream("Invitation.html"),oHtm);
for (int e=0; e<=6; e++) {
final String sEmail = getParam("email["+String.valueOf(e)+"]","").trim().toLowerCase();
if (sEmail.trim().length()>0) {
new AsyncSendInvitation(sEmail, getParam("email["+String.valueOf(e)+"]"), getParam("firstName["+String.valueOf(e)+"]"), getParam("lastName["+String.valueOf(e)+"]"), oSender.getFirstName(), oSender.getLastName(), aTaxPayers, getSessionAttribute("customer_account_docid"), bCreateEmployee, getParam("approve","").length()>0, getParam("settle","").length()>0, getParam("premium","").length()>0,new StringBuffer(new String(oTxt.toByteArray())),new StringBuffer(new String(oHtm.toByteArray()))).start();
} //fi
} // next
} catch (Exception xcpt) {
Log.out.error("SendInvitations.send() "+xcpt.getMessage(), xcpt);
addError(new SimpleError(xcpt.getMessage()));