• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Mail and JBoss

 
Andrew Mcmurray
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

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?

Thanks,

AMD
 
Paul Clapham
Sheriff
Posts: 21155
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Andrew Mcmurray
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul. So is JavaMail the best way to go for sending form input via email?
 
Paul Clapham
Sheriff
Posts: 21155
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic