This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I am looking for an easy way to send emails via smtp and with authentication. I have used the sun.net.smtp.SmtpClient classes from the J2SE JDK so far, which do not have authentication. I looked at JavaMail, but my understanding is that this is part of J2EE. I just don't want to install the complete J2EE and only use a little piece of it. Also, when I bundle JavaMail with my application, could I just ship 1-2 jar files out of the J2EE? or are their any other free java applications available to do that? Thanks, Bernd
You can use the JavaMail API w/out including all of J2EE. In general I use is "mail.jar" and "activation.jar", the first from JavaMail and the second from JAF. Both can be downloaded from Sun. I've used JavaMail not only to send email (w/ and w/out attachments) but to retrieve mail using IMAP. It works fine.