Can you help me, how to configure mail session on JBOSS AS7?
In older version of JBOSS, I configure like this:
1) Put my-mail-service.xml file into deploy directory.
2) Sample content of this file:
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mail-service.xml,v 1.1.1.1 2004/08/16 11:18:36 knowak Exp $ -->
<server>
<!-- ==================================================================== -->
<!-- Mail Connection Factory -->
<!-- ==================================================================== -->
<mbean code="org.jboss.mail.MailService"
name="jboss:service=Mail">
<attribute name="JNDIName">java:/MyMail</attribute>
<attribute name="User">my_user</attribute>
<attribute name="Password">my_pass</attribute>
<attribute name="Configuration">
<!-- Test -->
<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="my_pop3_server"/>
<!-- Change to the SMTP gateway server -->
<property name="mail.smtp.host" value="my_smtp_server"/>
<!-- Change to the address mail will be from -->
<property name="mail.from" value="my_email_from"/>
<!-- Enable debugging output from the javamail classes -->
<property name="mail.debug" value="false"/>
</configuration>
</attribute>
</mbean>
</server>