Can you tell me how can i configure below mail service in standalone.xml
gg.svce Dec 10, 2012 12:29 AMI have configure it in JBOSS 4.2.2 GA which is working fine:
how should i configure it in Jboss 7.1.1 Final:
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.mail.MailService"
name="jboss:service=Mail1">
<attribute name="JNDIName">pp/outbound/mail</attribute>
<attribute name="User">nobody</attribute>
<attribute name="Password">password</attribute>
<attribute name="Configuration">
<configuration>
<property name="mail.store.protocol" value="pop3"/>
<property name="mail.transport.protocol" value="smtp"/>
<property name="mail.user" value="nobody"/>
<property name="mail.pop3.host" value="pop3.example.com"/>
<property name="mail.smtp.host" value="12.4.0.4"/>
<property name="mail.smtp.port" value="25"/>
<property name="mail.from" value="xyz@smtp.com"/>
<property name="mail.debug" value="false"/>
</configuration>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
<mbean code="org.jboss.mail.MailService"
name="jboss:service=Mail2">
<attribute name="JNDIName">pp/notification/mail</attribute>
<attribute name="User">nobody</attribute>
<attribute name="Password">password</attribute>
<attribute name="Configuration">
<!-- A test configuration -->
<configuration>
<!-- Change to your mail server prototocol -->
<property name="mail.store.protocol" value="pop3"/>
<property name="mail.transport.protocol" value="smtp"/>
<!-- Change to the user who will receive mail -->
<property name="mail.user" value="nobody"/>
<!-- Change to the mail server -->
<property name="mail.pop3.host" value="pop3.example.com"/>
<!-- Change to the SMTP gateway server -->
<!--property name="mail.smtp.host" value="smtp.nosuchhost.nosuchdomain.com"/-->
<property name="mail.smtp.host" value="12.4.0.4"/>
<!-- The mail server port -->
<property name="mail.smtp.port" value="25"/>
<!-- Change to the address mail will be from -->
<!--property name="mail.from" value="nobody@nosuchhost.nosuchdomain.com"/-->
<property name="mail.from" value="xyz@smtp.com"/>
<!-- Enable debugging output from the javamail classes -->
<property name="mail.debug" value="false"/>
</configuration>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
Thanks in advance