Page 1 of 1

Out going email

PostPosted:Thu Apr 26, 2018 12:02 pm
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

Re: Out going email

PostPosted:Fri Apr 27, 2018 11:05 am
by jllort
Can you explain in more detail what you want ? some example is welcome for better clarification.

Re: Out going email

PostPosted:Wed May 16, 2018 8:05 am
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

Re: Out going email

PostPosted:Thu May 17, 2018 6:10 am
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.

Re: Out going email

PostPosted:Thu May 17, 2018 8:31 am
by praneeth
Yes, I ok to work on source code, please let me know

Re: Out going email

PostPosted:Fri May 18, 2018 6:20 pm
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 )