I am working on an android email client for my university email service. However, I have some troubles with attachments.Actually, I can get attachment from emails that are from gmail or other popular email services but I can't get attachments from emails that are from our university domain.

In gmail, it sends more than one body part in MimeMultipart (Message.getContent() returns MimeMultipart object) and I can get the attachments.

However, in my university email service send one BodyPart in MimeMultipart and it has only the text part of the message as plain and html.

Should I use extra command for obtain attachments?

没有正确的解决方案

其他提示

This JavaMail FAQ entry might help.

Also, try the msgshow.java sample program. You can read the source code of the program to see it it finds the attachments, or you can use it with the "-s" option to show the structure of the message. If you can't figure it out, post the -s output here.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top