Page 1 of 1

Mail "TO" list displaying

PostPosted:Mon Jul 10, 2017 9:47 am
by praneeth
Hi Can any one help me out in resolving below issue

I am running 6.3.2 version OpenKM

i am using Notify user option and then selecting role and uploaded the document, while the good thing is role user got notification from OpenKM saying new document updated. but the issue is role user can see all the recipients in the TO section of the email received. how do i hide this or it will best if all the notification email can be sent via BCC.
Opnkm mail issue.jpg
Opnkm mail issue.jpg (143.67 KiB) Viewed 6876 times
Thanks in advance

Thanks & Regards,
Praneeth

Re: Mail "TO" list displaying

PostPosted:Tue Jul 11, 2017 9:52 pm
by jllort
Should modify the source code for it. The problem of this kind of feature is that not always all the users wants the same behaviour. First should discuss how this feature should working, general configuration parameter for the whole events, or only for some ones ?

Re: Mail "TO" list displaying

PostPosted:Wed Jul 12, 2017 2:37 pm
by praneeth
general configuration parameter for the whole events

Re: Mail "TO" list displaying

PostPosted:Wed Jul 12, 2017 2:40 pm
by praneeth
Also i want to undustand how can i change the sender mail, all the email notifications should be sent via one sender email (update@xyz.com) currently it is sending notification with the logged in user name.

Re: Mail "TO" list displaying

PostPosted:Fri Jul 14, 2017 5:33 pm
by jllort
By default is used the mail of the person who caused the notification for filling the from. If you want to use always the same from should be modified the source code for it. It is not much complicated, if you want we can guide on it.

Re: Mail "TO" list displaying

PostPosted:Mon Jul 17, 2017 2:27 pm
by praneeth
Please guide me to do the configuration

Re: Mail "TO" list displaying

PostPosted:Tue Jul 18, 2017 2:18 pm
by jllort
Take a look at the class MailUtils.java all the mails what OpenKM sends are created from there. With small modification in that class you should got it. If you make something configurable ( with new Config.java ) we can consider include in the main code.

If you ask for a merge request - https://github.com/openkm/document-management-system - , ask to merge into branch 6.3-DEV

Re: Mail "TO" list displaying

PostPosted:Mon Jul 24, 2017 12:14 pm
by praneeth
jllort,

can you provide your response on the pending iteam

How can i hide list of recipients when notify email is sent from application (i am selecting role and sending out notification) notification received should be able to see other users.

Re: Mail "TO" list displaying

PostPosted:Tue Jul 25, 2017 7:34 am
by jllort
I do not understanding your question ?

"How can i hide list of recipients when notify email is sent from application (I am selecting role and sending out notification) notification received should be able to see other users."

You want to "hide list", then send mails with bcc. And "notification received should be able to see other users", I do not undestanding what are you trying to say ? When you choose a role - internally converts roles to mails ( I do not know what relation have with it ).

Re: Mail "TO" list displaying

PostPosted:Mon Jul 31, 2017 7:37 am
by praneeth
We are near, ok let me know how do i send mails with bcc.

Re: Mail "TO" list displaying

PostPosted:Wed Aug 02, 2017 10:10 am
by jllort
You should take a look at class MailUtils.java, any change or new method must be created or changed from there.

Re: Mail "TO" list displaying

PostPosted:Thu Aug 03, 2017 5:24 am
by praneeth
Can you provide me some reference on how to edit this file

Re: Mail "TO" list displaying

PostPosted:Sat Aug 05, 2017 4:55 pm
by jllort
Your last question makes me to think that you have no have skills ?
Did you have not downloaded the source and tryed to compile the source code, because this is the first step. If it's your first time on JAVA I suggest take your time, will not be something you will success in 5 minutes.

Re: Mail "TO" list displaying

PostPosted:Wed Aug 16, 2017 8:27 am
by praneeth
Hi jllort,

I have tried to search for 6.3.2 version MailUtils.java but could not find source code for this, can you please provide me some location from where i can download the source.

Re: Mail "TO" list displaying

PostPosted:Fri Aug 18, 2017 9:03 am
by jllort