Noam wrote: > I have used the mail 1.4 jar, and installed it successfully. > Even though I tried multiple examples, none of them seem to work. > All I get, when I look at the logcat, is > > Uncaught handler: thread main exiting due to uncaught exception > java.lang.VerifyError: javax.mail.internet.MimeMessage > > I have tried all of these examples: > > http://www.rgagnon.com/javadetails/java-0321.html > http://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/ > > What am I doing wrong?
At least the second post is from December 2007. In Android terms, that's back when dinosaurs roamed the Earth. I attempted to get JavaMail working with Android 0.9 and ran into the same problem you did. The error generally means that the JAR is not completely compatible with Android. If you can find the source code to JavaMail, add that source to your project, and compile it, you may be able to identify the problem and fix it. However, you may or may not like the JavaMail license terms. You might also consider whether there is some other means to solve your business issue than sending an email without user intervention on the device. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---