# Seam Email

Welcome to the Seam Email example. This example demonstrates Seam's email templating.

You need to enter a name and email address to receive the example emails in the form below.

## Help - it's not working!

- Setting an SMTP relay - If you have problems sending emails from this example you might have a firewall blocking outgoing email. You'll need to edit `<mail:mailSession>` in `resources/WEB-INF/components.xml` a `<mail:mailSession>`, set a SMTP relay to relay via and then run the `ant deploy` again.
- Servers other than JBoss AS - This example deploys Meldware (from buni.org - `meldware.ear`) to act as an SMTP server (it listens for authenticated connections on `localhost:2525`). This means the mail example will work out of the box on JBoss AS 4.0.5.GA. If you using another server you may need to set an SMTP relay as described above.
- Meldware will fail if you have another service using port 2525 (you'll get a errors when the applicaiton is deployed). To get around this you can set a SMTP gateway as described above.