[solved] Notify to users

OpenKM a de nombreuses fonctionnalités interessantes, mais demande un minimum de configuration pour être pleinement exploité.

Moderator: dedisoft

Forum rules
Avant de poser une question, merci de regarder la documentation du wiki ou d'utiliser la fonction recherche du forum. Et rappelez vous que nous n'avons ni boule de cristal ni possibilité de lire dans les pensées, aussi pensez à spécifier quelle version d'OpenKM vous utilisez ainsi que la version du navigateur web et du système d'exploitation. Pour de plus amples informations lisez Comment reporter un bug efficacement (anglais).
Post Reply
welcomeweb
Junior Boarder
Junior Boarder
Posts: 23
Joined: Mon Jun 15, 2015 3:51 pm

[solved] Notify to users

Post by welcomeweb » Wed Jun 17, 2015 10:26 am

Good day,
Is possible to send notify to multiple users in CCN not TO users? I don't want to see all the addresses in clear
Is possible enter a fixed email in the TO field (Es. administrator)?

Best regards
Last edited by welcomeweb on Thu Aug 13, 2015 6:48 am, edited 1 time in total.

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

Re: Notify to users

Post by jllort » Thu Jun 18, 2015 2:20 pm

About what openkm version are you talking ? and from where are you doing it, source code, webservices ?

welcomeweb
Junior Boarder
Junior Boarder
Posts: 23
Joined: Mon Jun 15, 2015 3:51 pm

Re: Notify to users

Post by welcomeweb » Thu Jun 18, 2015 2:35 pm

My Open KM Version is 6.3.0
Windows Server 2008 R2 64 bit

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

Re: Notify to users

Post by jllort » Sat Jun 20, 2015 8:16 am

OK, You're trying to do from webservices, some scripting, can you explain the steps with more details ?

welcomeweb
Junior Boarder
Junior Boarder
Posts: 23
Joined: Mon Jun 15, 2015 3:51 pm

Re: Notify to users

Post by welcomeweb » Mon Jun 22, 2015 6:58 am

I'm connected as admin from browser.
When i loaded a document, i marked the option "notify to users" and choosen some users.
The mail who i sent, show all recipients in "to" field.

Image

welcomeweb
Junior Boarder
Junior Boarder
Posts: 23
Joined: Mon Jun 15, 2015 3:51 pm

Re: Notify to users

Post by welcomeweb » Mon Jun 22, 2015 7:02 am

I want to know if is possible put the recipients in "CCN" and not in "TO" field

welcomeweb
Junior Boarder
Junior Boarder
Posts: 23
Joined: Mon Jun 15, 2015 3:51 pm

Re: Notify to users

Post by welcomeweb » Tue Jun 23, 2015 9:00 am

Good day,
any news for me?

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

Re: Notify to users

Post by jllort » Thu Jun 25, 2015 5:03 pm

Now I understood. The idea here is sombody ( from ) is sending mail ( to ) some user. For doing what you want should be modified the source code in serveral places. If you want doing it I can guide about what classes should be changed.

welcomeweb
Junior Boarder
Junior Boarder
Posts: 23
Joined: Mon Jun 15, 2015 3:51 pm

Re: Notify to users

Post by welcomeweb » Thu Jun 25, 2015 5:10 pm

Ok thanks, your help is very appreciated!
I'll wait your guide to making the changes, looking forward to hear from you.

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

Re: Notify to users

Post by jllort » Fri Jun 26, 2015 2:37 pm

First, should see it from UI, for it need to do some changes at the FancyFileUpload.java class and FileUploadForm.java ( this sure will be the more complex task ).When you get it, then should modify FileUploadServlet.java considering the new vars created at UI files. In serveral places you'll see

Code: Select all

OKMNotification.getInstance().notify(null, notifyPath, userNames, mailList, message, false);
Probably you will need to create a new notify method ( but it will be the easiest ) of all.

Here you have the OpenKM portable dev environment https://sourceforge.net/projects/openkmportabledev/

welcomeweb
Junior Boarder
Junior Boarder
Posts: 23
Joined: Mon Jun 15, 2015 3:51 pm

Re: Notify to users

Post by welcomeweb » Wed Jul 08, 2015 12:43 pm

Good day,
is possible for you to make this change for us?
How much would work if I gave you access to the server?

Best regards

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

Re: Notify to users

Post by jllort » Fri Jul 10, 2015 2:26 pm

Sorry but support for community users, start and ends in this forum. We can try to guide to you etc... but there are some rules can not be break down. On the other side the customer receive obviously an extra service, more direct support, some customization when are needed etc... can not be expected the same in the community version.

welcomeweb
Junior Boarder
Junior Boarder
Posts: 23
Joined: Mon Jun 15, 2015 3:51 pm

[solved] Re: Notify to users

Post by welcomeweb » Thu Aug 13, 2015 6:48 am

Good day,
i solved by a mailinglist.
I created a user with a mailinglist address.
The mailing list is populated by an automated php script.

It's not fancy but is functional

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

Re: [solved] Notify to users

Post by jllort » Thu Aug 13, 2015 10:32 am

I think I understood your solution, is phantom user used as mail alias account. You can try to disable this users or also assign a profile will all data disabled.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest