thanks,all friends,my mail-notification works well right now, here is my mail-service.xml:
////////////////////////////////////
////////////////////////////////////
<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\">
MyOfficeMailName</attribute>
<attribute name=\"Password\">MyOfficeMailPassword</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=\"
XXX.XXX.XXX.XXX\"/>
<!-- The mail server port -->
<property name=\"mail.smtp.port\" value=\"25\"/>
<!-- Change to the address mail will be from -->
<property name=\"mail.from\" value=\"
xxx@xxx.xxx\"/>
<!-- Enable debugging output from the javamail classes -->
<property name=\"mail.debug\" value=\"true\"/>
</configuration>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
</server>
/////////////////////////////////////////////////////////
XXX.XXX.XXX.XXX is a smtp-server-ip in my company,
xxx@xxx.xxx is my office mail address, which is included in the openkm-emails.properties