Thanks tidus2728, but still not working,
This is my "mail-service.xml":
| Code: |
<?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/OpenKM">
<attribute name="JNDIName">java:/mail/OpenKM</attribute>
<attribute name="User">openkmfan@gmail.com</attribute>
<attribute name="Password">XXXXXX</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="nobody"/>
<!-- Change to the mail server -->
<property name="mail.pop3.host" value="pop3.nosuchhost.nosuchdomain.com"/>
<!-- Change to the SMTP gateway server -->
<property name="mail.smtp.host" value="smtp.gmail.com"/>
<!-- The mail server port -->
<property name="mail.smtp.port" value="587"/>
<property name="mail.smtp.starttls.enable" value="true"/>
<property name="mail.smtp.auth" value="true"/>
<!-- Change to the address mail will be from -->
<property name="mail.from" value="openkmfan@gmail.com"/>
<!-- Enable debugging output from the javamail classes -->
<property name="mail.debug" value="true"/>
</configuration>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
</server>
|
The "openkm-emails.properities.xml":
| Code: |
user1=hb.com.cn@gmail.com
user2=hb.com.cn@gmail.com
user3=hb.com.cn@gmail.com
|
The "OpenKM.cfg":
| Code: |
# Default configuration values
#
# repository.config=repository.xml
# repository.home=repository
# system.user=system
# default.user.role=UserRol
# default.admin.role=AdminRol
# principal.adapter=es.git.openkm.core.UsersRolesPrincipalAdapter
# max.file.size=5
# max.search.results=25
application.url=http://132.205.XXX.XXX:8080/OpenKM/es.git.openkm.frontend.Main/index.jsp
|
I still can't send email notification...
attachments are the boot log and server log, I found there is no error in the boot log, so maybe still problem with mail-service.
All help will be appreciated!!!
tidus2728 wrote:
QUOTE:
Hi hbcomcn,
I am intrigued by how OpenKM behaves on your machine. But, you can try and return the settings to mail-service.xml from a fresh copy of the file without any revisions then change to these settings:
<attribute name="JNDIName">java:/mail/OpenKM</attribute>
<attribute name="User">openkmfan@gmail.com</attribute>
<attribute name="Password">XXXXXX</attribute>
<property name="mail.smtp.host" value="smtp.gmail.com"/>
<property name="mail.smtp.port" value="587"/>
<property name="mail.smtp.starttls.enable" value="true"/>
<property name="mail.smtp.auth" value="true"/>
<property name="mail.from" value="openkmfan@gmail.com"/>
<property name="mail.debug" value="true"/>
I omitted the other lines as these need to be in default. Also make sure that your machine directly access the internet without any proxy settings, otherwise, search the forum for the proxy configuration.
Then restart OpenKM and check the boot log of OpenKM to see if the mail is bound.
The try sending email notification and check the server log for the debug info.
Thanks.
File Attachment: File Name:
Log.zipFile Size: 79625