I want to set up a mail server for my web application. I installed and ran JAMES as per the apache JAMES wiki but as it is an standalone server. I wanted to know how can i integrate JAMES into my web application i.e send emails and other oprations through my web application front end. For example whenever you register with a website they shoot you a mail for verification of the email account. I want to do the same but have no idea how to do that. Kindly suggest some good tutorial or advice on how to do that. Kindly help. Thanks for your time.
Why would you want to do that? Part of the Java EE specification is that it includes JavaMail, which lets your code connect to an SMTP server -- such as the standalone JAMES server which you could run -- and use it to send e-mails.
In other words, do it the way it's supposed to be done. Standalone JAMES server, JavaMail to use it from your web application.