2013-07-15 130 views
0

配置設置 「mail.from」 在JBoss AS6,我們可以配置設置 「mail.from」 爲遵循凡在JBoss的7.1

<?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="[email protected]"/> 

     <!-- Enable debugging output from the javamail classes --> 
     <property name="mail.debug" value="true"/> 
     </configuration> 
    </attribute> 
    <depends>jboss:service=Naming</depends> 
    </mbean> 
</server> 

我在哪裏可以配置它的JBoss AS7?

非常感謝!

回答