• ERROR c.o.s.frontend.FileUploadServlet - Can't send notification because 'from' or 'to' is empty

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #45148  by gennari
 
Hi there,
I am using OpenKM 6.3.4 with Active Directory authentication.

I set email parameters in this manner:
Code: Select all
<Resource name="mail/OpenKM" type="javax.mail.Session"
          mail.transport.protocol="smtp" mail.smtp.auth="true"
          mail.user="admin@xxxxxx.it"
          mail.smtp.host="mail.diakont.it" mail.smtp.user="admin@xxxxxxx.it"
          password="xxxxxxx" mail.port="25" mail.debug="true"/>
I successfully tested this configuration with Check Email utility, but when OpenKM try to send notification to users, I get this error:
Code: Select all
ERROR c.o.s.frontend.FileUploadServlet - Can't send notification because 'from' or 'to' is empty

Email address is in mail attribute of Active Directory user, and I set principal.ldap.mail.attribute=mail.


Can you help me please?


Moreover, where can I find email logs?

Thanks in advance.

Genna
 #45156  by jllort
 
The message is talking about the user has not mail address, you should take a look at ldap parameters to get the mail address, usually something like it:
Code: Select all
principal.ldap.mail.attribute=mail
principal.ldap.mail.search.base=DC=company,DC=com
principal.ldap.mail.search.filter=(&(objectClass=person)(sAMAccountName={0}))
Consider read and understanding what is does https://docs.openkm.com/kcenter/view/ok ... roles.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.