• Mail usage problem on workflow

  • 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.
 #20629  by mammacori
 
Hy all,
i'm tryng to set up a simple workflow whose main goal is to checkin a document with categories and some other metadata.
At the end of the process the workflow should send an email to an user; at this step no matter the user is... the important thing is that the process will make sense.

after the task node in charge to checkin i created a node mail with the following code
Code: Select all
<mail-node name="mail-node1" to='user@gmail.com' subject='notifica da openkm' text='ho inserito un nuovo file'>
<transition to="end-state1" name="route 4"></transition>
</mail-node>
in the /opt/openblablabla/tomcat/conf/server.xml file i configured the following
Code: Select all
 <Resource name="mail/OpenKM" auth="Container" type="javax.mail.Session"
            mail.transport.protocol="smtp"
            mail.smtp.auth="true"
            mail.smtp.host="smtp.gmail.com"
            mail.smtp.port="465"
            mail.smtp.user="user@gmail.com"
            password="secretword"
            mail.smtp.from="user@gmail.com"
            mail.smtp.quitwait="false"
            mail.smtp.starttls.enable="true"
            mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
            mail.debug="true"
    />
but when i run the workflow i get the following error
Code: Select all
ERROR org.jbpm.mail.Mail - Cannot send mail, now retrying: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
it seems that openkm doesn't load the current parameters stored in server.xml above

where do i'm wrong ? do i miss something ?
i searched in the blog and in the web but i didn't find any help :(
Alessandro

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.