Great, thanks Christof,
That's just the info I was after.
Regards,
Gary
-----Original Message-----
From: Verdonck Christof [mailto:[email protected]]
Sent: Mon 7/4/2011 18:32
To: Gary Browne; [email protected]
Subject: Re: [Dspace-tech] Customising emails
Dear
I precondition that you use version 1.7.2 (but I believe all others use the sam
principle).
Basically, you add the parameter in the feedback template file
(dspace\config\emails\feedback)
After that you change the file FeedbackServlet
(dspace-jspui\dspace-jspui-api\src\main\java\org\dspace\app\webui\servlet).
in the method doDSGet, you will find a part which looks like:
...
// All data is there, send the email
try
{
Email email =
ConfigurationManager.getEmail(I18nUtil.getEmailFilename(context.getCurrentLocale(),
"feedback"));
email.addRecipient(ConfigurationManager
.getProperty("feedback.recipient"));
email.addArgument(new Date()); // Date
email.addArgument(formEmail); // Email
email.addArgument(authEmail); // Logged in as
email.addArgument(fromPage); // Referring page
email.addArgument(userAgent); // User agent
email.addArgument(sessionID); // Session ID
email.addArgument(feedback); // The feedback itself
// Replying to feedback will reply to email on form
email.setReplyTo(formEmail);
email.send();
log.info(LogManager.getHeader(context, "sent_feedback", "from="
+ formEmail));
JSPManager.showJSP(request, response,
"/feedback/acknowledge.jsp");
}
...
There you can add you parameter by following the example:
email.addArgument(myParam);
Yours Sincerely
Christof Verdonck
Gary Browne wrote:
Hi all,
I'd like to add some new parameters to the feedback email page but I
can't work out how it's done? Any pointers would be much appreciated.
Thanks,
Gary
GARY BROWNE | Development Programmer
Library IT Services | University Library
THE UNIVERSITY OF SYDNEY
Level 1, Fisher Library F03 | The University of Sydney | NSW | 2006
T +61 2 9351 5946 | F +61 2 9036 0000
E [email protected] | W http://sydney.edu.au
Sent from my plain old desktop computer.
CRICOS 00026A
This email plus any attachments to it are confidential. Any
unauthorised use is strictly prohibited. If you receive this email in error,
please delete it and any attachments.
Please think of our environment and only print this e-mail if necessary.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously
valuable.
Why? It contains a definitive record of application performance,
security
threats, fraudulent activity, and more. Splunk takes this data and
makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech