[jboss-cvs] jboss-seam/examples/mail/view ...
Peter Muir
peter at bleepbleep.org.uk
Fri Feb 2 11:49:09 EST 2007
User: pmuir
Date: 07/02/02 11:49:09
Modified: examples/mail/view index.xhtml
Log:
JBSEAM-694 Bundle meldware (SMTP component) from buni.org with mail example
Revision Changes Path
1.7 +6 -8 jboss-seam/examples/mail/view/index.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: index.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/mail/view/index.xhtml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- index.xhtml 28 Jan 2007 21:58:55 -0000 1.6
+++ index.xhtml 2 Feb 2007 16:49:09 -0000 1.7
@@ -14,13 +14,6 @@
<h1>Sample Emails</h1>
- <p>If you are using JBoss AS, you should configure deploy/mail-service.xml and set a SMTP gateway server.</p>
-
- <p>Otherwise you should configure a mailSession using components.</p>
-
- <p>See the reference manual for more.</p>
-
-
<h:form>
<h:panelGrid columns="2">
<h:outputText value="Name" />
@@ -37,7 +30,12 @@
<h:commandButton action="#{mailExample.sendHtml}" value="Send HTML Email" />
<h:commandButton action="templating" value="Send Templated Email" />
</h:panelGrid>
- <h:messages />
+ <h:messages infoStyle="info" errorStyle="error" fatalStyle="fatal" warnStyle="warn" />
</h:form>
+
+ <h1>Help!</h1>
+ <p>If you have problems sending emails from this example it's likely you have a firewall blocking outgoing email. You'll need to edit <code><mail:mailSession></code> in <code>resources/WEB-INF/components.xml</code> a<code><mail:mailSession></code>, set a SMTP gateway to relay via and then run the <code>ant deploy</code> again.</p>
+
+ <p>This example deploys an SMTP server (<code>buni-mail.ear</code>) which listens for authenticated connections on <code>localhost:2525</code>. This might fail if you another service using port 2525 (you'll get a lot of errors when the applicaiton is deployed), set a SMTP gateway as descrived above.</p>
</body>
</html>
More information about the jboss-cvs-commits
mailing list