gdurniak Posted August 30, 2011 Posted August 30, 2011 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));
epeeler Posted August 30, 2011 Posted August 30, 2011 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?
gdurniak Posted September 1, 2011 Author Posted September 1, 2011 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!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now