E-Mail Notification
PostPosted:Thu Jul 01, 2010 3:04 pm
Hi,
I'm currently configurating the email settings of OpenKM (4.1) and I was wondering how to send notifications.
I created a test-file and subscripted by a user. I thought after working on this file the subscripted user receive a mail but nothing happens.
And when activating the checkbox "send notification" after uploading a document I can't see & choose any user I could notify.
My mail-service.xml looks like this:
What did I configured wrong?
Thanks for your help.
Best regards,
Fritz
I'm currently configurating the email settings of OpenKM (4.1) and I was wondering how to send notifications.
I created a test-file and subscripted by a user. I thought after working on this file the subscripted user receive a mail but nothing happens.
And when activating the checkbox "send notification" after uploading a document I can't see & choose any user I could notify.
My mail-service.xml looks like this:
Code: Select all
The notification settings (I took the settings from the wiki):
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mail-service.xml 62349 2007-04-15 16:48:15Z dimitris@jboss.org $ -->
<server>
<!-- ==================================================================== -->
<!-- Mail Connection Factory -->
<!-- ==================================================================== -->
<mbean code="org.jboss.mail.MailService" name="jboss:service=Mail">
<attribute name="JNDIName">java:/Mail</attribute>
<attribute name="User">lekschaf</attribute>
<attribute name="Password">***</attribute>
<attribute name="Configuration">
<!-- A test configuration -->
<configuration>
<!-- Change to your mail server prototocol -->
<property name="mail.store.protocol" value="pop3"/>
<property name="mail.transport.protocol" value="smtp"/>
<!-- Change to the user who will receive mail -->
<property name="mail.user" value="lekschaf"/>
<!-- Change to the mail server -->
<property name="mail.pop3.host" value="***.charite.de"/>
<!-- Change to the SMTP gateway server -->
<property name="mail.smtp.host" value="***.charite.de"/>
<!-- The mail server port -->
<property name="mail.smtp.port" value="25"/>
<!-- Change to the address mail will be from -->
<property name="mail.from" value="***@charite.de"/>
<property name="mail.smtp.from" value="***@charite.de"/>
<property name="mail.smtp.user" value="lekschaf"/>
<property name="mail.smtp.password" value="***"/>
<property name="mail.smtp.auth" value="true"/>
<!-- Enable debugging output from the javamail classes -->
<property name="mail.debug" value="true"/>
</configuration>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
<!-- OpenKM -->
<mbean code="org.jboss.mail.MailService" name="jboss:service=OpenKM">
<attribute name="JNDIName">java:/mail/OpenKM</attribute>
<attribute name="User">lekschaf</attribute>
<attribute name="Password">***</attribute>
<attribute name="Configuration">
<configuration>
<property name="mail.store.protocol" value="pop3"/>
<property name="mail.user" value="lekschaf"/>
<property name="mail.pop3.host" value="***.charite.de"/>
<property name="mail.from" value="***@charite.de"/>
<property name="mail.transport.protocol" value="smtp"/>
<property name="mail.smtp.host" value="***.charite.de"/>
<property name="mail.smtp.port" value="25"/>
<property name="mail.smtp.from" value="***@charite.de"/>
<property name="mail.smtp.user" value="lekschaf"/>
<property name="mail.smtp.password" value="***"/>
<property name="mail.smtp.auth" value="true"/>
<property name="mail.debug" value="true"/>
</configuration>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
</server>
Code: Select all
I can't post any log entry as there aren't created any concerning mail.notification.message.subject= OpenKM - NOTIFICATION - $documentName
notification.message.body=<b>Document: </b><a href=\"$documentUrl\">$documentPath</a><br/><b>User: </b>$userId<br/><b>Message: </b>$notificationMessage<br/>
subscription.message.subject=OpenKM - $eventType - $documentPath
subscription.message.body=<b>Document: </b><a href=\"$documentUrl\">$documentPath</a><br/><b>User: </b>$userId<br/><b>Event: </b>$eventType<br/><b>Comment: </b>$subscriptionComment<br/>
What did I configured wrong?
Thanks for your help.
Best regards,
Fritz