|Classpath problem - getting error sending Email [message #499106]
||Thu, 19 November 2009 16:27
Registered: July 2009
In my RCP app, I just added the ability to email if certain conditions are met. When I try to email an attachment, I get the following error:|
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_6086910.1258665005981"
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.ja va:779)
I have the same code setup in regular java test program and it works fine. Other posts on the internet indicate it's an issue with the classpath which kind of makes sense. I created a plugin for the JavaMail API 1.4.2 jar files (http://java.sun.com/products/javamail/) and moved it to the top of the dependencies for my plugin. I still get the exception.
Any ideas? Has anyone else emailed from their RCP app and got it to work?
Powered by FUDForum
. Page generated in 0.02714 seconds