Page 1 of 1

Additional Email Notification

PostPosted:Thu Jan 05, 2017 3:55 am
by jimac
Hello,

Is it possible to add the inputted metadatas of a document in the email notification?
If possible, how?

Thank you in advance.

Re: Additional Email Notification

PostPosted:Fri Jan 06, 2017 11:56 am
by jllort
Should be modified the source code for it.

Re: Additional Email Notification

PostPosted:Mon Jan 09, 2017 12:45 am
by jimac
Hello jllort,

How can I modify the source code?

Re: Additional Email Notification

PostPosted:Tue Jan 10, 2017 9:06 am
by jllort
You can starting with OpenKM portable dev environment https://sourceforge.net/projects/openkmportabledev/

Re: Additional Email Notification

PostPosted:Tue Jan 10, 2017 11:45 pm
by MB1970
Ok thanks for help with source code.

Re: Additional Email Notification

PostPosted:Thu Jan 12, 2017 5:51 pm
by jllort
I suggest take a look at OKMNotify.java class -> and debug from there into the code. At the end you will arrive at MailUtils.java where are concentrated all the mail methods.

The change should be in the middle ( in the template ), my suggestion is when in template be some ${okp:metadata_field_name} -> do something special ( all the ${okp:XXXXX} fields in the template must be replaced by property group fields.

When you succeed on it, we can apply the path in the code, it's something what can be useful for more users.