August 30, 201114 yr I have been able to send HTML emails OK, with image links I am now trying to add inline images, but it fails with "unable to resolve class DataSource" in previous posts, you suggest I may need a jar file, but which one? I have loaded mail.jar, and activation.jar it seems something is missing thanks! Code: MimeBodyPart imagePart = new MimeBodyPart(); DataSource fds = new FileDataSource( "C:\\images\\image.jpg" ); imagePart.setDataHandler(new DataHandler(fds));
August 30, 201114 yr Sounds like the plug-in didn't get build correctly. Are you sure there weren't any errors that got overlooked when you loaded those .jar files?
September 1, 201114 yr Author My Bad ... I forgot the "import javax.activation.*;" in my code that's where the class is greg PS and where did they hide the Java Log on Windows 7. I can't find it!
Create an account or sign in to comment