Hello,

I get the same error (see below).
Have you found a fix for that? I really cannot figure out how to fix this!

ERROR/SendMail(5424): IOException while sending message
ERROR/SendMail(5424): javax.mail.MessagingException: IOException while sending 
message;
ERROR/SendMail(5424):   nested exception is:
ERROR/SendMail(5424):     javax.activation.UnsupportedDataTypeException: no 
object DCH for MIME type multipart/mixed; 
ERROR/SendMail(5424):     boundary="----=_Part_0_1075087160.1207214436435"
ERROR/SendMail(5424):     at 
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
ERROR/SendMail(5424):     at javax.mail.Transport.send0(Transport.java:189)
ERROR/SendMail(5424):     at javax.mail.Transport.send(Transport.java:118)
ERROR/SendMail(5424):     at 
com.vbarat.tests.sendmail.SMTPSender.sendMail(SMTPSender.java:91)
ERROR/SendMail(5424):     at 
com.vbarat.tests.sendmail.SendMail$1.onClick(SendMail.java:43)
ERROR/SendMail(5424):     at android.view.View.performClick(View.java:1857)
ERROR/SendMail(5424):     at android.view.View.onKeyUp(View.java:2872)
ERROR/SendMail(5424):     at android.widget.TextView.onKeyUp(TextView.java:1989)
ERROR/SendMail(5424):     at android.view.KeyEvent.dispatch(KeyEvent.java:495)
ERROR/SendMail(5424):     at android.view.View.dispatchKeyEvent(View.java:2689)
ERROR/SendMail(5424):     at 
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:531)
ERROR/SendMail(5424):     at 
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:531)
ERROR/SendMail(5424):     at 
android.widget.ScrollView.dispatchKeyEvent(ScrollView.java:85)
ERROR/SendMail(5424):     at 
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:531)
ERROR/SendMail(5424):     at 
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:531)
ERROR/SendMail(5424):     at 
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:531)
ERROR/SendMail(5424):     at 
android.policy.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1189)
ERROR/SendMail(5424):     at 
android.policy.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:871)
ERROR/SendMail(5424):     at 
android.app.Activity.dispatchKeyEvent(Activity.java:1503)
ERROR/SendMail(5424):     at 
android.policy.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1164)
ERROR/SendMail(5424):     at 
android.view.ViewRoot.deliverKeyEvent(ViewRoot.java:926)
ERROR/SendMail(5424):     at 
android.view.ViewRoot.handleMessage(ViewRoot.java:595)
ERROR/SendMail(5424):     at android.os.Handler.dispatchMessage(Handler.java:80)
ERROR/SendMail(5424):     at android.os.Looper.loop(Looper.java:91)
ERROR/SendMail(5424):     at 
android.app.ActivityThread.main(ActivityThread.java:3052)
ERROR/SendMail(5424):     at java.lang.reflect.Method.invokeNative(Native 
Method)
ERROR/SendMail(5424):     at java.lang.reflect.Method.invoke(Method.java:356)
ERROR/SendMail(5424):     at 
android.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1547)
ERROR/SendMail(5424):     at android.os.ZygoteInit.main(ZygoteInit.java:1445)
ERROR/SendMail(5424):     at android.dalvik.NativeStart.main(Native Method)
ERROR/SendMail(5424): Caused by: javax.activation.UnsupportedDataTypeException: 
no object DCH for MIME type multipart/mixed; 
ERROR/SendMail(5424):     boundary="----=_Part_0_1075087160.1207214436435"
ERROR/SendMail(5424):     at 
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:905)
ERROR/SendMail(5424):     at 
javax.activation.DataHandler.writeTo(DataHandler.java:330)
ERROR/SendMail(5424):     at 
javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
ERROR/SendMail(5424):     at 
javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
ERROR/SendMail(5424):     at 
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
ERROR/SendMail(5424):     ... 29 more


GeorgeS a écrit :
> I been working on an application that does that and attachments won't
> go through using the code referenced. I get a error saying that
> 'multipart/mixed' isn't supported. The same code works like a champ in
> a non-Android app. Sounds like something is implemented yet.
> 
> 
> On Feb 21, 7:12 am, Aditya <[EMAIL PROTECTED]> wrote:
>> On Feb 21, 11:07 am, "noha mansour" <[EMAIL PROTECTED]> wrote:> how can i 
>> send attachment to gmail via android???
>>> thanks
>> tryhttp://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-...
>> and 
>> thishttp://wiki.ittoolbox.com/index.php/Send_Email_with_Attachments_Using...
>>
>> mix up the code n u r done :)
> > 

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to