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();
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?
> 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...
> resin-interest mailing list
resin-interest mailing list