• Can't send/receive email

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #8476  by ken_hidaka
 
Yes I did follow the link you gave.

here is my email-service code:
Code: Select all
<?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">zebra@gmail.com</attribute>
    <attribute name="Password">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="zebra@gmail.com"/>

        <!-- Change to the mail server  -->
        <property name="mail.pop3.host" value="pop.gmail.com"/>

        <!-- Change to the SMTP gateway server -->
        <property name="mail.smtp.host" value="smtp.gmail.com"/>
        <property name="mail.smtp.starttls.enable" value="true" />
        <property name="mail.smtp.socketFactory.class" value="javax.net.ssl.SSLSocketFactory" />

        <!-- The mail server port -->
        <property name="mail.smtp.port" value="465"/>
        <property name="mail.smtp.socketFactory.port" value="465" />

        <!-- Change to the address mail will be from  -->
        <property name="mail.from" value="zebra@gmail.com"/>
        <property name="mail.smtp.user" value="zebra@gmail.com"/>
        <property name="mail.smtp.password" value="password"/>
        <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>
Do I have anything to configure aside from this? I also configure the openkm.cfg just like what you instructed. I can access my account using the zebra account.

Thanks,

Ken
 #8479  by jllort
 
The problem is here
Code: Select all
<mbean code="org.jboss.mail.MailService"
         name="jboss:service=mail">
    <attribute name="JNDIName">java:/Mail</attribute>
and must be
Code: Select all
<mbean code="org.jboss.mail.MailService" name="jboss:service=OpenKM">
  <attribute name="JNDIName">java:/mail/OpenKM</attribute>
 #8484  by ken_hidaka
 
Hello Jllort! I follow your suggestion unfortunately, I can't send message notification. I browse the logs and found this error.

-- Incompletely deployed packages ---
rg.jboss.deployment.DeploymentInfo@2d3fe832 { url=file:/C:/jboss/server/default/
eploy/mail-service.xml }
deployer: org.jboss.deployment.SARDeployer@16c9867
status: null
state: FAILED
watch: file:/C:/jboss/server/default/deploy/mail-service.xml
altDD: null
lastDeployed: 1296364264981
lastModified: 1296364264971
mbeans:

Im using a VISTA platform.

Please help! ^_^
 #8486  by jllort
 
You've make some mistake in xml, some tag bad written on unclosed tag ( in you file I've not seen </server/> at ends ) I sugges return writing, remove some parts and save until you found the mistake. That error is bad writen file format.

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.