As the document says there, a javax.mail.Session object is being stored in the jndi tree. So you fetch it from there and use it.
And when you have it, you can create your mail objects and send them over a "transport". See also http://javamail.kenai.com/nonav/javadocs/ The following part you can then left out: Properties props = new Properties(); props.put("mail.smtp.host", "my-mail-server"); props.put("mail.from", "m...@example.com"); Session session = Session.getInstance(props, null); ... On 24.07.2011 21:26, Stargazer wrote: > Hi - I get the config for resin mail, but could someone show how you > send a simple message (from, to, subj, body) in the java servlet part > which makes use of the mail config shown here please? > http://www.caucho.com/resin-4.0/admin/config-el-ref.xtp#mail > > Also, is this asynchronous? Ideally I'd like to use this as part of some > UI work, so would rather not have the user sit around waiting for the > mail send to complete... > > Thanks! > > > _______________________________________________ > resin-interest mailing list > firstname.lastname@example.org > http://maillist.caucho.com/mailman/listinfo/resin-interest > _______________________________________________ resin-interest mailing list email@example.com http://maillist.caucho.com/mailman/listinfo/resin-interest