2013-07-15 89 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?

非常感谢!

回答