Possible Duplicate:
Send email using java
Need to send e-mails to users.. must have the capability of typing in email id or search using contacts.. sending normal emails by filling up recepient id would also do.. need the jsp codes and library file if used..
There's a whole API for that, take a look at the documentation for JavaMail.