if(mailSession == null) {
throw new WebloggerException("Couldn't get mail Session");
}
try {
UserManager umgr = WebloggerFactory.getWeblogger().getUserManager();
String userName = entry.getCreator().getUserName();
String from = entry.getCreator().getEmailAddress();
String cc[] = new String[] {from};
String bcc[] = new String[0];
String to[];
String subject;
String content;
// list of enabled website authors and admins
ArrayList reviewers = new ArrayList();
List websiteUsers = umgr.getUsers(
entry.getWebsite(), Boolean.TRUE, null, null, 0, -1);
// build list of reviewers (website users with author permission)
Iterator websiteUserIter = websiteUsers.iterator();
while (websiteUserIter.hasNext()) {