On Tue, Dec 22, 2009 at 4:35 AM, Sandeep <san...@gmail.com> wrote: > hi guys, > Just starting out with the lift framework. > My intention is to get lift webapps working within glassfish app > server. > > I wanted to know whether it is possible to access a Glassfish javamail > configuration (say, using Gmail - > > http://groups.google.com/group/oop_programming/browse_thread/thread/f2df17c480e45369 > ) from within lift and send mail through it. > > I have seen and am aware of the Mailer class and the sendMail method > (http://scala-blogs.org/2008/06/emailing-and-texting-with-scala- > lift.html<http://scala-blogs.org/2008/06/emailing-and-texting-with-scala-%0Alift.html>) > , but what I want to do is access the Glassfish config and > use it. >
If the mailer in Glassfish is available via JNDI, please put the following in your Boot.scala file: Mailer.jndiName = Full("path/to/jndi/mailer/resource") Lift will look up the JNDI resource within Lift's Mailer object and use that resource. Thanks, David > > thanks! > -Sandeep > > -- > > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.