[jboss-user] [Beginners Corner] - Re: Sending Email using JBoss AS 4.0.4GA??
weston.price@jboss.com
do-not-reply at jboss.com
Mon Dec 4 00:48:44 EST 2006
Please do not cross post between forums. It does not get your question answered any faster and only clutters the forums with duplicate respones. Further, if you crost post you aren't guaranteed to get a pleasant response ;-)
There is nothing fundamentally different about sending mail in JBoss versus using the regular JavaMail API. I would suggest looking at the JavaMail tutorial, or the Java Almanac code examples involving JavaMail.
The only *real* difference is in how a Mail Session is acquired. This is done via JNDI and should be done using a resource reference.
A quick example can be found here:
http://java.sun.com/j2ee/sdk_1.2.1/techdocs/guides/ejb/html/Advanced3.html.
There are quite a few examples and tutorials on this topic around. A simple Google will serve you well.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990869#3990869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990869
More information about the jboss-user
mailing list