• Out going email

  • OpenKM tiene muchas características interesantes, pero es necesario un proceso de configuración para mostrar todo su potencial.
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.
 #45716  by praneeth
 
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
 #45722  by jllort
 
Can you explain in more detail what you want ? some example is welcome for better clarification.
 #45828  by praneeth
 
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
 #45840  by jllort
 
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.
 #45845  by praneeth
 
Yes, I ok to work on source code, please let me know
 #45853  by jllort
 
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 )

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.