try {
Vector vector = new Vector();
if (attachments.isArray()) {
Array array = attachments.toArray();
for (int i=0; i<array.size(); i++) {
vector.add(array.elementAt(i).toObject());
}
}
MailUtils.sendMail(host, from, to, cc, subject, content, vector);
return Any.TRUE;
} catch (Exception e) {