users@glassfish.java.net

Re: help on source code please

From: <glassfish_at_javadesktop.org>
Date: Fri, 01 Feb 2008 10:23:07 PST

Hi

Use class MailHelper and static method enviar(). There are some flavours of enviar(): to send a MimeMessage; to send an html body and to send a list of files. This works within Glassfish and within a common console Java application. In that case you must include a lot of jars: mail, activation, etc.

It works fine.

aperezymadrid
[Message sent by forum member 'aperezymadrid' (aperezymadrid)]

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