在 JBoss AS6 中,我们可以如下配置“mail.from”
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.mail.MailService" name="jboss:service=Mail">
<attribute name="JNDIName">java:/TestMail</attribute>
<attribute name="User">someUsername</attribute>
<attribute name="Password">somePassword</attribute>
<attribute name="Configuration">
<!-- A test configuration -->
<configuration>
<!-- Change to your mail server prototocol -->
<property name="mail.store.protocol" value="pop3"/>
...
<!-- Change to the address mail will be from -->
<property name="mail.from" value="testuser@middlewaremagic.com"/>
<!-- Enable debugging output from the javamail classes -->
<property name="mail.debug" value="true"/>
</configuration>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
</server>
在 JBoss AS7 哪里可以配置它?
非常感谢!