this.ignoreHooksCount--;
return;
}
Session session = Session.getDefaultInstance(props, null);
Transport trans = null;
trans = session.getTransport("smtp");
trans.connect();
this.smtpMessage = setUpMessage(session);
this.ignoreHooksCount++;
super.sendStartElementEventNS(ELEMENT_RESULT);
if (this.sendPartial == true) {
for (int i = 0; i < this.toAddresses.size(); i++) {
Vector v = new Vector(1);
v.add(this.toAddresses.elementAt(i));
sendMail(v, trans);
}
} else {
sendMail(this.toAddresses, trans);
}
trans.close();
super.sendEndElementEventNS(ELEMENT_RESULT);
this.ignoreHooksCount--;
} catch (Exception sE) {
this.getLogger().error("sendMail-Error", sE);
this.sendExceptionElement(sE);