copyTo[i] = new EMailAddress(copyToString[i]);
copyTo[i] = new EMailAddress(copyToString[i].trim());
	public final ActionForward send(ActionMapping mapping, ActionForm actionForm,			HttpServletRequest request, HttpServletResponse response) throws FenixActionException,			FenixFilterException, FenixServiceException {		MessageResources resources = this.getResources(request, "CMS_RESOURCES");		IUserView userView = this.getUserView(request);		SendMailForm sendMailForm = (SendMailForm) actionForm;		IGroup[] groupsToSend = this.getGroupsToSend(userView, sendMailForm, this.getPreviousRequestParameters(sendMailForm));		if (groupsToSend == null || groupsToSend.length == 0) {			ActionMessages errors = new ActionMessages();			errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("cms.mailSender.selectAtLeastOneGroup"));			addErrors(request, errors);			return this.start(mapping, actionForm, request, response);		}		SendEMailParameters parameters = new SendEMailParameters();		if (sendMailForm.getCopyTo() != null && !sendMailForm.getCopyTo().equals("")) {			String[] copyToString = sendMailForm.getCopyTo().split(",");			EMailAddress[] copyTo = new EMailAddress[copyToString.length];			for (int i = 0; i < copyToString.length; i++) {				copyTo[i] = new EMailAddress(copyToString[i]);			}			parameters.copyTo = copyTo;		}		parameters.subject = sendMailForm.getSubject();		parameters.message = sendMailForm.getMessage();		parameters.toRecipients = groupsToSend;		parameters.allowedSenders = this.getAllowedGroups(request, groupsToSend);		parameters.copyToSender = sendMailForm.getCopyToSender();		EMailAddress fromAddress = new EMailAddress();		fromAddress.setAddress(sendMailForm.getFromAddress());		fromAddress.setPersonalName(sendMailForm.getFromPersonalName());		if (sendMailForm.getFromAddress() == null || !fromAddress.isValid()) {			ActionMessages errors = new ActionMessages();			errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("cms.mailSender.provideValidFromEMailAddress"));			addErrors(request, errors);			return this.start(mapping, actionForm, request, response);		}		else {			parameters.from = fromAddress;		}		try {			SendMailReport result = (SendMailReport) ServiceManagerServiceFactory.executeService(userView, "SendEMail", new Object[] { parameters });			processReport(request, resources, result);		}		catch (Exception e) {			throw new FenixActionException(e);		}		return this.start(mapping, actionForm, request, response);	}