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