Out going email

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
Junior Boarder
Junior Boarder
Posts: 23
Joined: Wed Jun 14, 2017 2:44 pm

Out going email

Post by praneeth » Thu Apr 26, 2018 12:02 pm

Hi,

I want all my outgoing email notification from common email eg: noreply@xyz.com

currently it is going from logged in user email id

please suggest the changes

appreciate!

Thanks & Regards,
Praneeth

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

Re: Out going email

Post by jllort » Fri Apr 27, 2018 11:05 am

Can you explain in more detail what you want ? some example is welcome for better clarification.

praneeth
Junior Boarder
Junior Boarder
Posts: 23
Joined: Wed Jun 14, 2017 2:44 pm

Re: Out going email

Post by praneeth » Wed May 16, 2018 8:05 am

Hi Jllort,

While uploading a document we have an option to "notify to user" i am using this option

My issue is i want all the email notification should go out from one single common email id "xyz@xyz.com" and not from the logged user email

More:

eg: user1 has logged in and uploaded a document and opted to notify user to Role1
under Role1 there are many users who receive document updated email

all the users should see email from xyz@xyz.com and not from user1@xyz.com

Thanks & Regards,
Praneeth

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

Re: Out going email

Post by jllort » Thu May 17, 2018 6:10 am

For it must be done some changes in the source code. If you want to work on it I can guide about where looking for it.

praneeth
Junior Boarder
Junior Boarder
Posts: 23
Joined: Wed Jun 14, 2017 2:44 pm

Re: Out going email

Post by praneeth » Thu May 17, 2018 8:31 am

Yes, I ok to work on source code, please let me know

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

Re: Out going email

Post by jllort » Fri May 18, 2018 6:20 pm

Changes should be done at the class MailUtils.java
https://github.com/openkm/document-mana ... Utils.java

If you want we include in the source code the change should be able to allow switching between actual configuration and working in the way you have described in this post. For it you should play with some new configuration parameter at Config.java
https://github.com/openkm/document-mana ... onfig.java

There's a little mess in the MailUtils.java, I suggest take a look at the references and debug 3 cases:
1- When user upload a document and send a notification to some user
2- When user send link notification
3- User subscription notification ( user is subscribed to some folder and you upload some file there, it is send a notification )

I think might be a starting point. Also consider take a look when OpenKM use server.xml from attribute set as mail address ( https://docs.openkm.com/kcenter/view/ok ... -mail.html )

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests