JavaMail: A good "How to receive attachments" sample/book?
posted 12 years ago
Can anyone recommend a good "How to receive attachments" sample or book? I've been through the JGuru tutorial, and the msgshow.java example, but they seem to fall short in area of comprehensively extracting all types of attachments. I am seeing an example of this at the moment: we are relying on the message content being an instanceof MultiPart to determine whether the email has attachments (as in the tutorial). However, we are receiving some emails that are not multipart, but DO have an attachment (content type = application). The JGuru tutorial does not deal with recursive Multiparts either, which I have seen some peope mention in other forums. And I cannot find any examples of what to do with mutipart/aternative content types.
If anyone knows of a foolproof example, or a good book, please help!!
Thanks in advance. [ August 24, 2004: Message edited by: Mark Pinks ]