public void sendEmail(PortletConfig portletConfig, String emailAddress, String localizedSubject, String localizedTemplatePath, Map<String, String> userAttributes) throws AdministrationEmailException { String from = configuration.getString(PortalConfigurationConstants.EMAIL_SENDER); String subject = localizedSubject; String to = emailAddress; String text = mergeEmailTemplate(portletConfig, userAttributes, "map", localizedTemplatePath); sendEmail(from, subject, to, text); }