People person = (People) e.nextElement();
NSDictionary bindings = new NSDictionary(new Object[] { person }, new Object[] { "user" });
NSArray unreadBugs = person.unreadBugs();
String email = person.email();
if (unreadBugs.count() > 0 && email != null && email.length() != 0) {
BugReportEmail emailBody = (BugReportEmail)WOApplication.application().pageWithName("BugReportEmail", ERXWOContext.newContext());
emailBody.takeValueForKey(unreadBugs, "unreadBugs");
emailBody.takeValueForKey(person, "owner");
WOMailDelivery.sharedInstance().composeComponentEmail("bugtracker@netstruxr.com", new NSArray(email), null,
"You have " + unreadBugs.count() + " unread bug(s)", emailBody, true);
NSLog.debug.appendln("Sending report to " + email + ": " + unreadBugs.count() + " unread bugs");
}
}