I am trying to send a 7Zip attachment using SMTP (java mail), even after setting proper multi-part and content type as "application/x-7z-compressed", I see it is not shown as attachment, as below, any suggestions what I could be missing ?
Asked
Active
Viewed 254 times
1 Answers
0
Either something messed up the formatting of your post, or you pasted in an image. Either way, it's hard to see exactly what's going on with your message.
Try using the msgshow.java demo program included with JavaMail. It can show you the structure of a message. If it's not showing you what you expect, give us more details. In particular, what do you mean by "is not shown as an attachment"? What's doing the "showing"? Your mail reader?

Bill Shannon
- 29,579
- 6
- 38
- 40
I seem to have figured out the issue to be with content boundary. Same code works fine and my gmail shows and recongnizes my files as an attachment, while the tool I am mentioning does not.
I saw the headers in detail on both gmail and this tool, and I see when gmail recognizes and shows a boundary like this `boundary="----=_Part_0_1582441433.1351802036515"`, but the tool does not show this, may be I should do fix this ? – Sandeep Nov 01 '12 at 21:10