if (receivers.size() == 0) {
String noUsersWithEmailString = getResources(req).getMessage(locale,"smssvc.noUsersWithEmail");
req.setAttribute("generalError",noUsersWithEmailString);
return mapping.findForward("notSent");
}
MessagingManager msgMgr = new MessagingManager(locale, session);
msgMgr.sendEmail(fromAddress, receivers, getCurrentGroup(req), msgForm.getSubject(), msgForm.getMessage(), msgForm.getMimeType() == null ? MailSender.MIME_TYPE_PLAIN_TEXT : msgForm.getMimeType().intValue(), sendAt);
Date date = new Date(System.currentTimeMillis());
String formattedDate = DateFormat.getTimeInstance(DateFormat.MEDIUM,locale).format(date);
String generalInformation = getResources(req).getMessage(locale, "smssvc.asyncSendStarted", new Object[] {new Integer(receivers.size()), formattedDate});
req.setAttribute("generalInformation", generalInformation);
return mapping.findForward("sent");