users@glassfish.java.net

Glassfish and JavaMail

From: <glassfish_at_javadesktop.org>
Date: Thu, 27 Dec 2007 02:32:16 PST

Hello,

I would like to send an email when certain jsp page does a certain operation.(like a registration confirmation email)

I have read https://glassfish.dev.java.net/javaee5/docs/DG/beaow.html where the mail session is looked up tru a jdni look up.

My question is rather architectural. How should I place this code and where? inside an ejb bean? a message driven bean? how can the jsp page contact this bean and send the message?

Best Regards,
-seg
[Message sent by forum member 'segfault2007' (segfault2007)]

http://forums.java.net/jive/thread.jspa?messageID=251505