This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Kind of lost and need some help. I have never done this before. I am getting form data and would like to format it and send it in an email using whatever mail service Jboss provides. Assuming that I can configure JBoss, is Java Mail what I need to send the email? If so is there any examples on how to do this?
Yes. JBoss is a J2EE server and so it automatically includes JavaMail. If you ask your favourite web search engine to look for "javamail tutorial" or "javamail examples" you're sure to find out how to use JavaMail. Unless you were asking how to configure JBoss to set up a mail session, that I don't know how to do.
Joined: Sep 24, 2005
Thanks Paul. So is JavaMail the best way to go for sending form input via email?
JavaMail beats connecting to the mail server and sending the low-level commands by a mile. The vast majority of our automated e-mails at work are sent via JavaMail code that I wrote. But if you want an even higher-level (simpler) API you might have a look at Jakarta Commons Email.