report.addNumberInquiries(student.getAttends().size()); report.addUnansweredInquiries(numberUnansweredInquiries);
	private boolean sendEmailReminder(HttpServletRequest request,			InfoStudentWithAttendsAndInquiriesRegistries student, InfoExecutionPeriod currentExecutionPeriod,			InfoInquiriesEmailReminderReport report, DynaActionForm form, ResourceBundle bundle) {		String emailAddress = student.getInfoPerson().getEmail();				if(!EMail.emailAddressFormatIsValid(emailAddress)) {			return false;		}         report.addStudentsWithEmail(1);						EMail email = null;		int numberUnansweredInquiries = 0;						report.addNumberInquiries(student.getAttends().size());		String unevaluatedCoursesNames = "";		for(InfoFrequenta studentAttends : student.getAttends()) {			InfoExecutionCourse attendingCourse = studentAttends.getDisciplinaExecucao();			boolean evaluated = false;			for(InfoInquiriesRegistry studentRegistries : student.getInquiriesRegistries()) {				if((attendingCourse.equals(studentRegistries.getExecutionCourse())) &&						(currentExecutionPeriod.equals(studentRegistries.getExecutionPeriod()))) {										evaluated = true;					break;				}			}			if(!evaluated) {				unevaluatedCoursesNames += "\t* " + attendingCourse.getNome() + "\n";				numberUnansweredInquiries++;			}		}		if(numberUnansweredInquiries == 0)			return false;		String bodyIntro = (String) form.get("bodyTextIntro");		String bodyEnd = (String) form.get("bodyTextEnd");		String body = bodyIntro + "\n" + unevaluatedCoursesNames + "\n" + bodyEnd;				String subject = (String) form.get("bodyTextSubject");//		subject += " - " + currentExecutionPeriod.getSemester() + bundle.getString("label.inquiries.ord.semester");//		subject += ", " + currentExecutionPeriod.getInfoExecutionYear().getYear();				String originMail = bundle.getString("message.inquiries.email.reminder.origin.mail");        if (!request.getServerName().equals("localhost")) {            email = new EMail("mail.adm", originMail);		} else {//            email = new EMail("localhost", originMail);            email = new EMail("mail.rnl.ist.utl.pt", originMail);			subject += " (localhost)";        }				if(email.send(emailAddress, subject, body)) {			report.addSentEmails(1);			report.addNumberInquiries(student.getAttends().size());			report.addUnansweredInquiries(numberUnansweredInquiries);			return true;					}						return false;	}