Today you're in luck. The answer is yes. All you need is to copy the required jars to your project. You need to add mail.jar
and activation.jar
files in your CLASSPATH. Mkyong have a complete example in JavaMail API – Sending email via Gmail SMTP example.
The required libraries also can download http://search.maven.org/
In another hand, if you need a dummy mail server for test, you can use Papercute from Codeplex. Unzip and run.