0

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 のどこで設定できますか?

本当にありがとう!

4

1 に答える 1

0

この質問は、スーパーユーザーの方が適していると思います。あくまでメモとして。:-)

ただし、グーグルへの簡単な質問でこれが得られました: https://issues.jboss.org/browse/AS7-1177

使うべきだと思います

<property name="mail.from">nobody@nosuchhost.nosuchdomain.com</property> 

新しい構成形式で。

于 2013-07-15T09:05:01.303 に答える