Mail "TO" list displaying

OpenKM tiene muchas características interesantes, pero es necesario un proceso de configuración para mostrar todo su potencial.
Forum rules
Por favor, antes de preguntar algo consulta el wiki de documentación o utiliza la función de búsqueda del foro. Recuerda que no tenemos una bola de cristal ni poderes mentales, o sea que que para informar sobre un error es necesario que nos indiques tanto la versión de OpenKM que usas como la del navegador y sistema operativo. Para más información consulta Cómo informar de fallos de forma efectiva.
Post Reply
praneeth
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Wed Jun 14, 2017 2:44 pm

Mail "TO" list displaying

Post by praneeth » Mon Jul 10, 2017 9:47 am

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
Thanks in advance

Thanks & Regards,
Praneeth

jllort
Moderator
Moderator
Posts: 9647
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mail "TO" list displaying

Post by jllort » Tue Jul 11, 2017 9:52 pm

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 ?

praneeth
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Wed Jun 14, 2017 2:44 pm

Re: Mail "TO" list displaying

Post by praneeth » Wed Jul 12, 2017 2:37 pm

general configuration parameter for the whole events

praneeth
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Wed Jun 14, 2017 2:44 pm

Re: Mail "TO" list displaying

Post by praneeth » Wed Jul 12, 2017 2:40 pm

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.

jllort
Moderator
Moderator
Posts: 9647
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mail "TO" list displaying

Post by jllort » Fri Jul 14, 2017 5:33 pm

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.

praneeth
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Wed Jun 14, 2017 2:44 pm

Re: Mail "TO" list displaying

Post by praneeth » Mon Jul 17, 2017 2:27 pm

Please guide me to do the configuration

jllort
Moderator
Moderator
Posts: 9647
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mail "TO" list displaying

Post by jllort » Tue Jul 18, 2017 2:18 pm

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

praneeth
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Wed Jun 14, 2017 2:44 pm

Re: Mail "TO" list displaying

Post by praneeth » Mon Jul 24, 2017 12:14 pm

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.

jllort
Moderator
Moderator
Posts: 9647
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mail "TO" list displaying

Post by jllort » Tue Jul 25, 2017 7:34 am

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 ).

praneeth
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Wed Jun 14, 2017 2:44 pm

Re: Mail "TO" list displaying

Post by praneeth » Mon Jul 31, 2017 7:37 am

We are near, ok let me know how do i send mails with bcc.

jllort
Moderator
Moderator
Posts: 9647
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mail "TO" list displaying

Post by jllort » Wed Aug 02, 2017 10:10 am

You should take a look at class MailUtils.java, any change or new method must be created or changed from there.

praneeth
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Wed Jun 14, 2017 2:44 pm

Re: Mail "TO" list displaying

Post by praneeth » Thu Aug 03, 2017 5:24 am

Can you provide me some reference on how to edit this file

jllort
Moderator
Moderator
Posts: 9647
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mail "TO" list displaying

Post by jllort » Sat Aug 05, 2017 4:55 pm

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.

praneeth
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: Wed Jun 14, 2017 2:44 pm

Re: Mail "TO" list displaying

Post by praneeth » Wed Aug 16, 2017 8:27 am

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.

jllort
Moderator
Moderator
Posts: 9647
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mail "TO" list displaying

Post by jllort » Fri Aug 18, 2017 9:03 am


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest