“在何处配置”;邮寄自;在JBoss7.1中

“在何处配置”;邮寄自;在JBoss7.1中,jboss,jakarta-mail,Jboss,Jakarta Mail,在JBossAS6中,我们可以如下配置“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> <attri

在JBossAS6中,我们可以如下配置“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>

java:/TestMail
someUsername
密码
...
jboss:service=Naming
在JBoss AS7中我在哪里可以配置它


非常感谢

我认为这个问题更适合我的问题。请注意::-)

然而,谷歌给了我一个简单的问题:

我认为你应该使用

<property name="mail.from">nobody@nosuchhost.nosuchdomain.com</property> 
nobody@nosuchhost.nosuchdomain.com 
以新的配置格式