Mailconnectexception when sending email with javamail hot network questions is it inappropriate for politicians to make rules governing scientific research?. See build instructions for instructions on how to download and build the most recent javamail source code. you can also find a bundle of the source code for the most recent javamail release in the releases area of this project.. A: to run a web application using javamail, you can add the javamail javax.mail.jar file and, if you're not using jdk 1.6 or newer, the javabeans activation framework javax.activation.jar file to the lib directory under the directory in which you installed tomcat. this will cause tomcat to include these jar files in its classpath automatically. for details, see.
Download simple java mail api for free. very simple api to send mail through an smtp server. works in the command-line or inside other projects as a lib.. And if you really do try the code above for sending a java object by email, you'll have trouble locating the bytearraydatasource class, as neither mail.jar nor activation.jar include it. try looking in the javamail demo directory!. Search google; about google; privacy; terms.