Hi, On 05/10/13 04:26, Jose Blanco wrote: > I have another file in which I need to have string type, and I can't > seem to make that happen. Here is the code I want to make more > configurable: > > String subject = "File(s) for \"" + title + "\" requested > from Deep Blue"; > String message = "Dear " + requestor_name + ",\n\n" + > "Thank you for your interest. However, we are sorry to have to inform > you that the author has chosen not to send the file(s) you > requested.\n\nBest regards,\n\nDeep Blue\[email protected]"; > > ReqEmail2 email = > RequestItemManager2.getEmail(subject, message); > > Notice taht subject and message have to be strings.
See, now we're talking e-mails, not XMLUI :) The mechanism for putting together e-mail messages is different. You should not be using messages.xml at all; instead, you should be using localised e-mail templates. Have a look at the org.dspace.core.Email class; for an example of how this is used, see the notifyGroupOfTask method in org.dspace.workflow.WorkflowManager (https://github.com/DSpace/DSpace/blob/dspace-3.2/dspace-api/src/main/java/org/dspace/workflow/WorkflowManager.java#L973 in the DSpace 3.2 codebase). cheers, Andrea -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

