in jboss as6 can config "mail.from" follow
<?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"> <!-- test configuration --> <configuration> <!-- change mail server prototocol --> <property name="mail.store.protocol" value="pop3"/> ... <!-- change address mail --> <property name="mail.from" value="testuser@middlewaremagic.com"/> <!-- enable debugging output javamail classes --> <property name="mail.debug" value="true"/> </configuration> </attribute> <depends>jboss:service=naming</depends> </mbean> </server>
where can config in jboss as7?
thanks much!
i think question fit better in superuser. note. :-)
however simple question google gave me this: https://issues.jboss.org/browse/as7-1177
i think should use
<property name="mail.from">nobody@nosuchhost.nosuchdomain.com</property>
in new config format.
Comments
Post a Comment