i'm using JBoss portal 2.2.1GA on JBoss AS 4.0.4, i donwloaded the Forums portlet, also i'm using the Jboss mail server version 1.04 and i have setup an SMTP account. the e-mail notification isn't working. i edited couple of xml files
-$CorePortal/portal-core.sar/META-INF/jboss-service.xml with the following:
<mbean code="org.jboss.portal.core.impl.mail.MailModuleImpl" name="portal:service=Module,type=Mail" xmbean-dd="org/jboss/portal/core/impl/mail/MailModuleImpl.xml"> <depends>jboss:service=Mail</depends> <depends>portal:service=Module,type=User</depends> <attribute name="QueueCapacity">-1</attribute> <attribute name="Gateway">localhost</attribute> <attribute name="SmtpUser"></attribute> <attribute name="SmtpPassword"></attribute> <attribute name="JavaMailDebugEnabled">true</attribute> <attribute name="SMTPConnectionTimeout">100000</attribute> <attribute name="SMTPTimeout">10000</attribute> <attribute name="JNDIName">java:portal/MailModule</attribute> </mbean>
<init-param> <description>Email address used for FROM field of email notification</description> <name>fromAddress</name> <value>Mohamed.Amer@itrize.com</value> </init-param>
Hello
I see that you have set:
<attribute name="JavaMailDebugEnabled">true</attribute>so in your console you should have log of what is going on and when it breakes.