E-Mailing via Java

I have various JavaBeans and JSP pages for implementing functions. One of which i want to send a receipt via email to the user. Can someone point me in the direction of a tutorial or something that would assist me in implementing this?Thanks
[255 byte] By [AlaNioa] at [2007-11-27 5:49:23]
# 1
search: JavaMail
bsampieria at 2007-7-12 15:35:50 > top of Java-index,Java Essentials,Java Programming...
# 2

http://stardeveloper.com/articles/display.html?article=2001101101&page=2

http://www.javaworld.com/jw-10-2001/jw-1026-javamail.html

http://java.sun.com/products/javamail/

You will need to get hold of a copy of mail.jar, and activation.jar and place them in the common/lib directory of the JSP container you are using (Tomct?).

fuzzyBikera at 2007-7-12 15:35:50 > top of Java-index,Java Essentials,Java Programming...
# 3
or FAR better, send email from a servlet. JSP are NOT meant for that.
jwentinga at 2007-7-12 15:35:50 > top of Java-index,Java Essentials,Java Programming...
# 4
i was going to use a servlet or bean
AlaNioa at 2007-7-12 15:35:50 > top of Java-index,Java Essentials,Java Programming...
# 5

Remember the Model View Controller architecture. (You're on the right track by the way)

JSP User provides the information for the email

Servlet Receives the request from the jsp and marshals the information

Bean (Or other construct) actually creates and sends the email.

PS.

puckstopper31a at 2007-7-12 15:35:50 > top of Java-index,Java Essentials,Java Programming...